-
-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Packager source map not found when composing final source map #3751
Comments
Hi @yzlin, Typically this is caused by white space characters on the path, but I don't see those in the log. Can you share steps how you step your application and how does your |
Hi @krystofwoldrich, I followed docs to install sentry via wizard, opened Xcode and archived the app. Before sentry modified here's the build phrase: export EXTRA_PACKAGER_ARGS="--sourcemap-output $TMPDIR/$(md5 -qs "$CONFIGURATION_BUILD_DIR")-main.jsbundle.map"
set -e
WITH_ENVIRONMENT="../node_modules/react-native/scripts/xcode/with-environment.sh"
REACT_NATIVE_XCODE="../node_modules/react-native/scripts/react-native-xcode.sh"
/bin/sh -c "$WITH_ENVIRONMENT \"/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode.sh $REACT_NATIVE_XCODE\"" |
I'm also facing this issue after upgrading both RN (0.73.6) & Sentry (5.22.0) Here the command and output from metro bundling
And then later on when Sentry tries to load the files
So it seems like the main.jsbundle.map file is being put in a different directory by metro compared to the main.jsbundle file which is causing Sentry to fail? Is there any fix for this? |
Hi @yzlin excuse the delayed reply, the issue is Alternatively you if you want to specify your path to the source maps use |
@lab900-guillian-bouchier Can you share with use your Xcode If you are using |
Hi @krystofwoldrich, Below is my build phase script
So should I change the 2nd export to |
I was having the same problem. So after migrating from the variable "EXTRA_PACKAGER_ARGS" to
Everything works normally And be care like it was said earlier, any space in the path of the file, broke the script. |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.20.0
react-native
version: 0.73.6Are you using Expo?
Are you using sentry.io or on-premise?
Configuration:
(
@sentry/react-native
)I have the following issue:
Failed to upload source maps while archiving
The text was updated successfully, but these errors were encountered: