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 1515project_path = Dir . glob ( "#{ current_path } /ios/*.xcodeproj" ) . first
1616file_name = File . basename ( project_path , ".xcodeproj" )
1717project_location = "./ios/#{ file_name } .xcodeproj"
18- default_target_name = file_name
19- framework_root = '../node_modules/instabug-reactnative/ios'
20- framework_name = 'Instabug.framework'
2118
2219INSTABUG_PHASE_NAME = "Strip Frameworks"
2320
3330
3431# Get useful variables
3532project = Xcodeproj ::Project . open ( project_location )
36- frameworks_group = project . groups . find { |group | group . display_name == 'Frameworks' }
37- frameworks_group ||= project . new_group ( 'Frameworks' )
38- default_target = project . targets . find { |target | target . to_s == default_target_name } || project . targets . first
3933targets = project . targets . select { |target | ( target . is_a? Xcodeproj ::Project ::Object ::PBXNativeTarget ) &&
4034 ( target . product_type == "com.apple.product-type.application" ) &&
4135 ( target . platform_name == :ios ) }
42- framework_ref = frameworks_group . new_file ( "#{ framework_root } /#{ framework_name } " )
4336
4437targets . each do |target |
4538 #Add New Run Script Phase to Build Phases
Original file line number Diff line number Diff line change 1111project_path = Dir . glob ( "#{ current_path } /ios/*.xcodeproj" ) . first
1212file_name = File . basename ( project_path , ".xcodeproj" )
1313project_location = "./ios/#{ file_name } .xcodeproj"
14- framework_root = '../node_modules/instabug-reactnative/ios'
15- framework_name = 'Instabug.framework'
1614
1715INSTABUG_PHASE_NAME = "Strip Frameworks"
1816
1917INSTABUG_UPLOAD_NAME = "Upload Sourcemap"
2018
2119# Get useful variables
2220project = Xcodeproj ::Project . open ( project_location )
23- frameworks_group = project . groups . find { |group | group . display_name == 'Frameworks' }
2421targets = project . targets . select { |target | ( target . is_a? Xcodeproj ::Project ::Object ::PBXNativeTarget ) &&
2522 ( target . product_type == "com.apple.product-type.application" ) &&
2623 ( target . platform_name == :ios ) }
27- framework_ref = frameworks_group . files . find { |file_reference | file_reference . path == "#{ framework_root } /#{ framework_name } " }
28-
29- # # Remove Instabug's framework from the Frameworks group
30- # frameworks_group.children.delete(framework_ref)
3124
3225targets . each do |target |
3326 #Delete New Run Script Phase from Build Phases
You can’t perform that action at this time.
0 commit comments