File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1616framework_root = '../node_modules/instabug-reactnative/ios'
1717framework_name = 'Instabug.framework'
1818
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+
1924# Get useful variables
2025project = Xcodeproj ::Project . open ( project_location )
2126frameworks_group = project . groups . find { |group | group . display_name == 'Frameworks' }
4348frameworks_build_phase . add_file_reference ( framework_ref )
4449build_file . settings = { 'ATTRIBUTES' => [ 'CodeSignOnCopy' , 'RemoveHeadersOnCopy' ] }
4550
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+
4655# Save Xcode project
4756project . save
You can’t perform that action at this time.
0 commit comments