Harden Xcode Cloud Sentry dSYM upload in post-build script
- Fix Sentry post-build dSYM upload fallback and script permissions - Refine sentry-cli stderr capture in post-build script Co-authored-by: danieldaquino <24692108+danieldaquino@users.noreply.github.com>
This commit is contained in:
Regular → Executable
+5
-2
@@ -28,6 +28,9 @@ fi
|
||||
export SENTRY_ORG=damus-nostr-inc
|
||||
export SENTRY_PROJECT=apple-ios
|
||||
|
||||
if ! sentry-cli debug-files upload --include-sources "${DSYM_PATH}" >/dev/null 2>&1; then
|
||||
echo "warning: sentry-cli failed to upload dSYMs from ${DSYM_PATH}"
|
||||
if ! error_output=$(sentry-cli debug-files upload --include-sources "${DSYM_PATH}" 2>&1); then
|
||||
echo "warning: sentry-cli failed to upload dSYMs with sources from ${DSYM_PATH}: ${error_output}"
|
||||
if ! error_output=$(sentry-cli debug-files upload "${DSYM_PATH}" 2>&1); then
|
||||
echo "warning: sentry-cli failed to upload dSYMs from ${DSYM_PATH}: ${error_output}"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user