File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 16
16
framework_root = '../node_modules/instabug-reactnative/ios'
17
17
framework_name = 'Instabug.framework'
18
18
19
+ INSTABUG_PHASE_NAME = "Strip Frameworks"
20
+ INSTABUG_PHASE_SCRIPT = <<-SCRIPTEND
21
+ bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework/Instabug.bundle/strip-frameworks.sh"
22
+ SCRIPTEND
23
+
19
24
# Get useful variables
20
25
project = Xcodeproj ::Project . open ( project_location )
21
26
frameworks_group = project . groups . find { |group | group . display_name == 'Frameworks' }
43
48
frameworks_build_phase . add_file_reference ( framework_ref )
44
49
build_file . settings = { 'ATTRIBUTES' => [ 'CodeSignOnCopy' , 'RemoveHeadersOnCopy' ] }
45
50
51
+ #Add New Run Script Phase to Build Phases
52
+ phase = target . new_shell_script_build_phase ( INSTABUG_PHASE_NAME )
53
+ phase . shell_script = INSTABUG_PHASE_SCRIPT
54
+
46
55
# Save Xcode project
47
56
project . save
You can’t perform that action at this time.
0 commit comments