We’re using Sentry with React-Native and are having problems with our sourcemap on iOS.
This is the error we’re getting: Source code was not found for /Frameworks/SalesflowReactKit.framework/main.jsbundle Collapse { "url": "/Frameworks/SalesflowReactKit.framework/main.jsbundle" }
The actual javascript error: ReferenceError Can't find variable: force_crash /Frameworks/SalesflowReactKit.framework/main.jsbundle at line 369:2549
As you can see we’re using a slightly different setup where we’re including ReactNative in a framework in our app, so main.jsbundle is not in the root of the application bundle.
We are currently working on a react-native package which is almost ready for beta testing, we will release it probably in the next one or two weeks. This package will support everything out of the box and also shows you mixed stacktraces (JS/Native).
So stay tuned for that …
Until then try the following:
--url-prefix="/" --rewrite --strip-common-prefix
Add these 3 options for uploading the source maps, this should fix the problem.
This will rewrite the sourcemap and fix the sourceMappingURL in it.
Also try --url-prefix="~" and let me know if this fixed the problem for you.