-
-
Notifications
You must be signed in to change notification settings - Fork 338
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] No matching Debug IDs found for JS sourcemaps. #4355
Comments
Another issue, why is this script Is there a way to know if sentry's script invoked
|
I uploaded it manually for now by writing below script,
#!/bin/bash
set -ex
npx expo export:embed \
--entry-file index.js \
--platform ios \
--dev false \
--reset-cache \
--bundle-output main.jsbundle \
--sourcemap-output main.jsbundle.map
ios/Pods/hermes-engine/destroot/bin/hermesc \
-O -emit-binary \
-output-source-map \
-out=main.jsbundle.hbc \
main.jsbundle
rm -f main.jsbundle
mv main.jsbundle.hbc main.jsbundle
mv main.jsbundle.map main.jsbundle.packager.map
node \
node_modules/react-native/scripts/compose-source-maps.js \
main.jsbundle.packager.map \
main.jsbundle.hbc.map \
-o main.jsbundle.map
node \
node_modules/@sentry/react-native/scripts/copy-debugid.js \
main.jsbundle.packager.map main.jsbundle.map
rm -f main.jsbundle.packager.map
npx sentry-cli sourcemaps upload \
--debug-id-reference \
--strip-prefix /path/to/project/root \
main.jsbundle main.jsbundle.map
|
Hi @jayshah123,
We are happy to investigate more, why the automatic upload didn't work for you. Could you please send us output of the |
Here are the build logs, let me know if you need anyting more (app name replaced to myapp here for anonymity):
|
What React Native libraries do you use?
Hermes, React Navigation, Expo (mobile only) with Bare workflow
Are you using sentry.io or on-premise?
sentry.io (SaS)
@sentry/react-native SDK Version
5.33.0
How does your development environment look like?
JS stacktrace shows "Unminify code" (See screenshot below)
https://people-center-inc.sentry.io/issues/5949546316/?project=1272927&query=release%3A3.0.3-1008&referrer=issue-stream&sort=freq&statsPeriod=7d&stream_index=1
System:
OS: macOS 15.1.1
CPU: (10) arm64 Apple M1 Max
Memory: 185.14 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.13.0
path: ~/.nvm/versions/node/v18.13.0/bin/node
Yarn:
version: 1.18.0
path: ~/.yarn/bin/yarn
npm:
version: 8.19.3
path: ~/.nvm/versions/node/v18.13.0/bin/npm
Watchman:
version: 2024.10.21.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.14.3
path: /Users/jshah/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK: Not Found
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10811636
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.12
path: /usr/bin/javac
Ruby:
version: 3.3.0
path: /Users/jshah/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.9
wanted: 0.73.9
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Sentry.init()
Steps to Reproduce
I have "Bundle React Native Code and images" with following code (updated with sentry wizard codegen):
Expected Result
Should work as expected.
I believe the sourcemaps might not have been uploaded, can we make these steps have more verbose logging to debug quicker?
Actual Result
The text was updated successfully, but these errors were encountered: