Skip to content

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

Closed as not planned
Closed as not planned

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

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Dec 8, 2023
  2. krystofwoldrich commented on Dec 11, 2023

    @krystofwoldrich
    Contributor

    Hi,
    thank you for the message and the reproducible example. I'm going to clone the project and try it. I'll add a comment here with the result.

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Dec 11, 2023
  4. krystofwoldrich commented on Dec 13, 2023

    @krystofwoldrich
    Contributor

    I reproduced the issue, thank you for the repository, we are still investigation why is it happening.

  5. krystofwoldrich commented on Jan 16, 2024

    @krystofwoldrich
    Contributor

    Based on our investigation the background upload is working in https://github.com/getsentry/sentry-cli/releases/tag/2.21.3. You can manually downgrade to that version of Sentry CLI until we fix the bug.

  6. krystofwoldrich commented on Jan 16, 2024

    @krystofwoldrich
    Contributor

    Please follow the sentry-cli issue for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions