Skip to content
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

Source code was not found for app:///main.ios.jsbundle in React Native #1263

Closed
xutm opened this issue Mar 19, 2018 · 1 comment
Closed

Source code was not found for app:///main.ios.jsbundle in React Native #1263

xutm opened this issue Mar 19, 2018 · 1 comment

Comments

@xutm
Copy link

xutm commented Mar 19, 2018

  • react-native 0.50.4
  • react-native-sentry 0.32.1
  • sentry 8.19.0
  • while testing on a real IOS device in Debug config (prebundled source on the device)
  • sourcemaps are uploaded correctly since they appear as "~/main.ios.jsbundle.map" on -
    release/artifacts page for the correct dist number
  • the error is: "Source code was not found for app:///main.ios.jsbundle"

init sentry

Sentry.config(ops.dsn).install()
Sentry.setRelease('0.0.32')
sentry

sourcemap

node node_modules/react-native/local-cli/cli.js bundle --platform ios --entry-file ./src/index.js --bundle-output ./output_ios/main.ios.jsbundle --sourcemap-output ./output_ios/main.ios.jsbundle.map --assets-dest ./output_ios --dev true

sourcemap

upload bundle and sourcemap

./node_modules/.bin/sentry-cli --auth-token <auth-tocken> --url https://fse.devops.xiaohongshu.com/ releases -o sentry -p mall-home files 0.0.32 upload-sourcemaps --rewrite --validate /Users/xutianming/red/mall-home/output_ios/main.ios.jsbundle /Users/xutianming/red/mall-home/output_ios/main.ios.jsbundle.map --strip-prefix /Users/xutianming/red/mall-home/output_ios/

image

project => releases => artifacts

artifacts

error

error

I don't know where is the problem,how to solve the problem?

@HazAT
Copy link
Member

HazAT commented Mar 19, 2018

I will close this here since you already created an issue in the right SDK
getsentry/sentry-react-native#377

@HazAT HazAT closed this as completed Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants