Skip to content

Commit c73880d

Browse files
committed
refactor: Firebase에 dsym 자동 업로드
1 parent 647056c commit c73880d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/testflight.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)