Skip to content

Commit 459c176

Browse files
fix(xcode): Collect modules path from shell (#3451)
1 parent 4b629ec commit 459c176

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- This fix requires a rebuild of the native app
1717
- Symbolicate message and non-Error stacktraces locally in debug mode ([#3420](https://github.com/getsentry/sentry-react-native/pull/3420))
1818
- Remove Sentry SDK frames from rejected promise SyntheticError stack ([#3423](https://github.com/getsentry/sentry-react-native/pull/3423))
19+
- Fix path from Xcode scripts to Collect Modules ([#3451](https://github.com/getsentry/sentry-react-native/pull/3451))
1920

2021
### Dependencies
2122

scripts/collect-modules.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if [[ -n "$NODE_BINARY" ]]; then
2929
fi
3030

3131
thisFilePath=$(dirname $0)
32-
collectModulesScript="$thisFilePath/../../dist/js/tools/collectModules.js"
32+
collectModulesScript="$thisFilePath/../dist/js/tools/collectModules.js"
3333

3434
destination="$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH"
3535
modulesOutput="$destination/modules.json"

scripts/sentry-xcode.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ else
2525
/bin/sh -c "$REACT_NATIVE_XCODE"
2626
fi
2727

28-
[ -z "$SENTRY_COLLECT_MODULES" ] && SENTRY_COLLECT_MODULES="../../scripts/collect-modules.sh"
28+
[ -z "$SENTRY_COLLECT_MODULES" ] && SENTRY_COLLECT_MODULES="../node_modules/@sentry/react-native/scripts/collect-modules.sh"
2929

3030
if [ -f "$SENTRY_COLLECT_MODULES" ]; then
3131
/bin/sh "$SENTRY_COLLECT_MODULES"

0 commit comments

Comments
 (0)