Skip to content

Commit 87d53fd

Browse files
fix(xcode): Upload Debug Symbols continues when node not found (#3573)
1 parent 3b30390 commit 87d53fd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- Fetch Organization slug from `@sentry/react-native/expo` config when uploading artifacts ([#3557](https://github.com/getsentry/sentry-react-native/pull/3557))
2727
- Remove 404 Http Client Errors reports for Metro Dev Server Requests ([#3553](https://github.com/getsentry/sentry-react-native/pull/3553))
2828
- Stop tracing Spotlight Sidecar network request in JS ([#3559](https://github.com/getsentry/sentry-react-native/pull/3559))
29+
- Upload Debug Symbols Build Phase continues when `node` not found in `WITH_ENVIRONMENT` ([#3573](https://github.com/getsentry/sentry-react-native/pull/3573))
2930

3031
## 5.17.0
3132

scripts/sentry-xcode-debug-files.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Upload Debug Symbols to Sentry Xcode Build Phase
33
# PWD=ios
44

5-
# print commands before executing them and stop on first error
6-
set -x -e
5+
# print commands before executing them
6+
set -x
77

88
[ -z "$WITH_ENVIRONMENT" ] && WITH_ENVIRONMENT="../node_modules/react-native/scripts/xcode/with-environment.sh"
99

@@ -12,6 +12,9 @@ if [ -f "$WITH_ENVIRONMENT" ]; then
1212
. "$WITH_ENVIRONMENT"
1313
fi
1414

15+
# stop on first error (we can't use -e before as any failed command in WITH_ENVIRONMENT would stop the debug files upload)
16+
set -e
17+
1518
LOCAL_NODE_BINARY=${NODE_BINARY:-node}
1619

1720
[ -z "$SENTRY_PROPERTIES" ] && export SENTRY_PROPERTIES=sentry.properties

0 commit comments

Comments
 (0)