Skip to main content

Source maps for iOS events are not working for react native SDK

Updated over a month ago

Issue

My events from the React Native SDK do not have legible stack trace. Instead, all frames in the stacktrace point to the same location (same file:line:column).

This issue does not affect events from Android devices.

Applies To

  • All SaaS Customers

  • Error Monitoring

  • React Native SDK

  • Apps deployed to iOS devices

Symptoms

  • Source maps are uploaded.

  • Source maps are applied but all frames point to same location.

  • hermes_debug_info is set to true in the React Native Context section.

Resolution

Customer can do one of the two options:

  1. Use the source map generation and upload command described on this page. Remember that the release and dist values must match exactly.

  2. Or fix your Xcode project to output Hermes bundle without debug info, and then the uploaded source maps will work. The sentry-xcode script ensures the correct settings. The script is added to build during sentry-wizard configuration, as described on this step.

Did this answer your question?