Sentry-react-native: iOS source map is not linked: "Source code was not found"

Created on 29 May 2020  路  3Comments  路  Source: getsentry/sentry-react-native

OS:

  • [ ] Windows
  • [x] MacOS
  • [ ] Linux

Platform:

  • [x] iOS
  • [ ] Android

SDK:

  • [x] @sentry/react-native (>= 1.0.0)
  • [ ] react-native-sentry (<= 0.43.2)

SDK version: 1.3.8

react-native version: 0.61.5

Are you using Expo?

  • [ ] Yes
  • [x] No

Are you using sentry.io or on-premise?

  • [x] sentry.io (SaaS)
  • [ ] on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

N/A

Configuration:

(@sentry/react-native)

const dist = DeviceInfo.getBuildNumber();
const release = `${DeviceInfo.getBundleId()}@${DeviceInfo.getVersion()}+${dist}`;
Sentry.init({ dsn: SENTRY_DSN, release, dist });
Sentry.setRelease(release);
Sentry.setDist(dist);
Sentry.setTags({ environment: BUILD_TYPE });

I have following issue:

iOS React Native bundled JS source map is uploaded to Sentry during build time, I and it's attached to version specified in release, but once crash happens the Sentry report says "Source code was not found" and therefore crash is not linked to any source map even though the report shows that it's linked to the Sentry release that has source map uploaded. Android is totally fine.

Steps to reproduce:

  • Upload iOS React Native bundled JS source map to Sentry during build time.
  • Have a crash.

Actual result:

iOS Sentry report doesn't have React Native bundled JS source map linked.

Expected result:

iOS Sentry report has React Native bundled JS source map linked.

iOMac

Most helpful comment

@jennmueng I know it's been a while, so feel free to close this if this issue is a little too old- but here's a screenshot (I'm running into the same issue on v2.1.0). You can see that the Android artifacts were uploaded, but no iOS ones:

Screen Shot 2021-02-20 at 4 31 59 PM

My iOS build's release and distribution match that release, as well:
Screen Shot 2021-02-20 at 4 32 06 PM

Thanks for taking the time to look into this 馃檹

All 3 comments

@poocart Can you send a screenshot of the artifacts tab of that release? I would like to see if it is set up correctly.

You can do this by going to the "Releases" tab, then clicking on the name of that specific release, then navigate to the "Artifacts" tab.

Hey I'm also running into this issue. I've noticed that while the CLI does in fact send the artifacts to sentry.io, nothing appears under the Artifacts tab.

Building on Android works as expected.

Edit: Looking the xcode logs is no help, this is only thing reported:

  INFO    2020-06-17 13:52:26.930158 -04:00 Loaded config from ~/.sentryclirc
  INFO    2020-06-17 13:52:26.930562 -04:00 sentry-cli was invoked with the following command line: "~/node_modules/@sentry/cli/sentry-cli" "upload-dsym"
  INFO    2020-06-17 13:52:26.931004 -04:00 Issuing a command for Organization: org Project: project
Continuing in background.

@jennmueng I know it's been a while, so feel free to close this if this issue is a little too old- but here's a screenshot (I'm running into the same issue on v2.1.0). You can see that the Android artifacts were uploaded, but no iOS ones:

Screen Shot 2021-02-20 at 4 31 59 PM

My iOS build's release and distribution match that release, as well:
Screen Shot 2021-02-20 at 4 32 06 PM

Thanks for taking the time to look into this 馃檹

Was this page helpful?
0 / 5 - 0 ratings