File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,6 +116,32 @@ jobs:
116116 - name : Build for TestFlight
117117 run : bundle exec fastlane testflight_build_only
118118
119+ - name : Upload dSYM to Firebase Crashlytics
120+ shell : bash
121+ run : |
122+ set -euo pipefail
123+
124+ google_service_info_path="Application/DevLogApp/Sources/Resource/GoogleService-Info.plist"
125+ dsym_zip_path="$(find fastlane/testflight_build -maxdepth 1 -name '*.dSYM.zip' -print -quit)"
126+ upload_symbols_path="$(find "$HOME/Library/Developer/Xcode/DerivedData" "$HOME/Library/Developer/Xcode/SourcePackages" "$GITHUB_WORKSPACE" -path '*/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/upload-symbols' -type f -print -quit 2>/dev/null || true)"
127+
128+ if [ ! -f "$google_service_info_path" ]; then
129+ echo "Missing GoogleService-Info.plist at $google_service_info_path" >&2
130+ exit 1
131+ fi
132+
133+ if [ -z "$dsym_zip_path" ]; then
134+ echo "Missing dSYM zip in fastlane/testflight_build" >&2
135+ exit 1
136+ fi
137+
138+ if [ -z "$upload_symbols_path" ]; then
139+ echo "Missing Firebase Crashlytics upload-symbols script" >&2
140+ exit 1
141+ fi
142+
143+ "$upload_symbols_path" -gsp "$google_service_info_path" -p ios "$dsym_zip_path"
144+
119145 - name : Upload TestFlight build log
120146 if : always()
121147 uses : actions/upload-artifact@v6
You can’t perform that action at this time.
0 commit comments