Skip to content

Commit 3f67e92

Browse files
antonisclaude
andauthored
fix(ios): print bundler output line-by-line on build failure (#5699)
When a JS syntax or import error causes the Metro bundler to fail, the build output was printed as a single unreadable string, hiding the actual error behind a generic Sentry source maps message. Print the captured output line-by-line (consistent with the success path) and before the Sentry guidance, so the real bundler error is visible in Xcode's Issues navigator. Fixes #5689 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cb7404a commit 3f67e92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/scripts/sentry-xcode.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ if [ "$SENTRY_DISABLE_AUTO_UPLOAD" != true ]; then
5757
echo "$SENTRY_XCODE_COMMAND_OUTPUT" | awk '{print "output: sentry-cli - " $0}'
5858
else
5959
if [ "$SENTRY_ALLOW_FAILURE" == true ]; then
60+
echo "$SENTRY_XCODE_COMMAND_OUTPUT" | awk '{print "warning: sentry-cli - " $0}'
6061
echo "warning: sentry-cli - Source maps upload failed, but continuing build because SENTRY_ALLOW_FAILURE=true"
61-
echo "warning: sentry-cli - $SENTRY_XCODE_COMMAND_OUTPUT"
6262
else
63+
echo "$SENTRY_XCODE_COMMAND_OUTPUT" | awk '{print "error: sentry-cli - " $0}'
6364
echo "error: sentry-cli - To disable source maps auto upload, set SENTRY_DISABLE_AUTO_UPLOAD=true in your environment variables. Or to allow failing upload, set SENTRY_ALLOW_FAILURE=true"
64-
echo "error: sentry-cli - $SENTRY_XCODE_COMMAND_OUTPUT"
6565
exitCode=1
6666
fi
6767
fi

0 commit comments

Comments
 (0)