File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 15
15
project_path = Dir . glob ( "#{ current_path } /ios/*.xcodeproj" ) . first
16
16
file_name = File . basename ( project_path , ".xcodeproj" )
17
17
project_location = "./ios/#{ file_name } .xcodeproj"
18
- default_target_name = file_name
19
- framework_root = '../node_modules/instabug-reactnative/ios'
20
- framework_name = 'Instabug.xcframework'
21
18
22
19
INSTABUG_UPLOAD_NAME = "Upload Sourcemap"
23
20
27
24
28
25
# Get useful variables
29
26
project = Xcodeproj ::Project . open ( project_location )
30
- frameworks_group = project . groups . find { |group | group . display_name == 'Frameworks' }
31
- frameworks_group ||= project . new_group ( 'Frameworks' )
32
- default_target = project . targets . find { |target | target . to_s == default_target_name } || project . targets . first
33
27
targets = project . targets . select { |target | ( target . is_a? Xcodeproj ::Project ::Object ::PBXNativeTarget ) &&
34
28
( target . product_type == "com.apple.product-type.application" ) &&
35
29
( target . platform_name == :ios ) }
36
- framework_ref = frameworks_group . new_file ( "#{ framework_root } /#{ framework_name } " )
37
30
38
31
targets . each do |target |
39
32
#Add New Run Script Phase to Build Phases
Original file line number Diff line number Diff line change 11
11
project_path = Dir . glob ( "#{ current_path } /ios/*.xcodeproj" ) . first
12
12
file_name = File . basename ( project_path , ".xcodeproj" )
13
13
project_location = "./ios/#{ file_name } .xcodeproj"
14
- framework_root = '../node_modules/instabug-reactnative/ios'
15
- framework_name = 'Instabug.xcframework'
16
14
17
15
INSTABUG_UPLOAD_NAME = "Upload Sourcemap"
18
16
19
17
# Get useful variables
20
18
project = Xcodeproj ::Project . open ( project_location )
21
- frameworks_group = project . groups . find { |group | group . display_name == 'Frameworks' }
22
19
targets = project . targets . select { |target | ( target . is_a? Xcodeproj ::Project ::Object ::PBXNativeTarget ) &&
23
20
( target . product_type == "com.apple.product-type.application" ) &&
24
21
( target . platform_name == :ios ) }
25
- framework_ref = frameworks_group . files . find { |file_reference | file_reference . path == "#{ framework_root } /#{ framework_name } " }
26
-
27
- # # Remove Instabug's framework from the Frameworks group
28
- # frameworks_group.children.delete(framework_ref)
29
22
30
23
targets . each do |target |
31
24
#Delete New Run Script Phase from Build Phases
You can’t perform that action at this time.
0 commit comments