Skip to content

iOS source map only works with force-foreground flag #3456

@maykonmichel

Description

@maykonmichel

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

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

SDK version: 5.15.1

react-native version: 0.73.0

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

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

Unminified code issue
Issue with workaround

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://241a4d607de84f2b3aff4b18f06c88a6@o4506359951392768.ingest.sentry.io/4506359953162240'
});

I have the following issue:

When a crash happens on iOS, Sentry doesn't capture sourcemap unless I set the force foreground flag adding export SENTRY_CLI_EXTRA_ARGS="--force-foreground" at .xcode.env

Steps to reproduce:

  • Initialize a new project
  • Run sentry wizard and setup app
  • Build a release app and test the crash

Reproducer repo

Actual result:

Sentry issues dashboard shows the crash, but with unminified code

Expected result:

Sentry issues dashboard shows the crash with unminified code

Metadata

Metadata

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions