fix(ios): resolve Crashlytics upload-symbols for SPM builds
The Crashlytics 'Upload Symbols' build phase was hardcoded to the CocoaPods path ($PODS_ROOT/FirebaseCrashlytics/upload-symbols), but Flutter 3.44 + firebase_crashlytics 5.x resolve Firebase via Swift Package Manager, so that path no longer exists and every release build (including fastlane build_app) failed with 'No such file or directory'. Fall back to the SPM checkout path when the pod isn't present so the upload works under either integration. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7f4abdefea
commit
8883af90f0
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@
|
|||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"$PODS_ROOT/FirebaseCrashlytics/upload-symbols\" --flutter-project \"$PROJECT_DIR/firebase_app_id_file.json\" ";
|
||||
shellScript = "# Locate upload-symbols whether Firebase is integrated via CocoaPods or Swift Package Manager.\nBIN=\"$PODS_ROOT/FirebaseCrashlytics/upload-symbols\"\n[ -f \"$BIN\" ] || BIN=\"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/upload-symbols\"\n\"$BIN\" --flutter-project \"$PROJECT_DIR/firebase_app_id_file.json\"\n";
|
||||
};
|
||||
34CC65D58A1948B306772884 /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue