File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1919# This script patches the Crashlytics Quickstart's Xcode project to fix the
2020# path to the `run` script for XCFramework-based builds.
2121#
22- # The default project assumes an SPM dependency and has a hardcoded path:
23- # ${BUILD_DIR%Build/*}SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run
24- #
25- # This script changes it to the path used by the XCFramework distribution:
26- # "${SRCROOT}/Firebase/FirebaseCrashlytics/run"
22+ # The default project assumes an SPM dependency. This script changes the path
23+ # to point to the location where the `run` script is placed in the zip
24+ # distribution test environment.
2725
2826project_path = 'quickstart-ios/crashlytics/CrashlyticsExample.xcodeproj'
2927project = Xcodeproj ::Project . open ( project_path )
28+ new_path = '"${SRCROOT}/Firebase/run"'
3029
3130project . targets . each do |target |
3231 target . build_phases . each do |phase |
3332 if phase . is_a? ( Xcodeproj ::Project ::Object ::PBXShellScriptBuildPhase ) && phase . name == 'Run Script'
3433 if phase . shell_script . include? ( 'SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run' )
35- puts "Patching Run Script phase in target: #{ target . name } "
36- phase . shell_script = '"${SRCROOT}/Firebase/FirebaseCrashlytics/run"'
34+ puts "Patching Run Script phase in target ' #{ target . name } ' to: #{ new_path } "
35+ phase . shell_script = new_path
3736 end
3837 end
3938 end
4039end
4140
42- project . save
41+ project . save
You can’t perform that action at this time.
0 commit comments