Skip to content

Provide a way to set SENTRY_DISABLE_AUTO_UPLOAD without access to the env (Expo managed projects) #3552

Closed
getsentry/sentry-docs
#17830

Description

@leemhenson

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

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

SDK version: 5.17.0

react-native version: 0.73.0

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or 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)

withSentry({
  // .. my expo config
}, {
  organization: "my-organization",
  project: "my-project",
});

I have the following issue:

I can't see an easy way to set the SENTRY_DISABLE_AUTO_UPLOAD environment variable in .xcode.env.local so that building my app in xcode locally completes without popping up an warning about failure to upload:

image

and clicking "Show details" reveals:

image

As an Expo managed workflow user I am not in control of .xcode.env.local, it gets generated by expo prebuild. I can write a custom Expo plugin to modify that file but it seems like a lot of effort. Ideally I'd like to see this supported:

withSentry({
  // .. my expo config
}, {
  organization: "my-organization",
  project: "my-project",
  uploadSourcemaps: false, // for example
});

Steps to reproduce:

  • Create Expo app with managed workflow
  • Install @sentry/react-native per the docs
  • expo prebuild
  • Open xcode and attempt to build the app

Actual result:

As described above.

Expected result:

No errors about uploads when I'm building locally.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Jan 25, 2024
  2. krystofwoldrich commented on Jan 30, 2024

    @krystofwoldrich
    Contributor

    Hi @leemhenson,
    thank you we agree, this is a valuable option to be included in the @sentry/react-native/expo plugin options.

  3. AdamTyler commented on Mar 22, 2024

    @AdamTyler

    Also running an expo app and would like to have this option to disable the upload for local development builds

    Including SENTRY_DISABLE_AUTO_UPLOAD in the .env files doesn't seem to have an effect on prebuild

  4. krystofwoldrich commented on Mar 25, 2024

    @krystofwoldrich
    Contributor

    @AdamTyler Thank you for the message, currently only .xcode.env files are loaded in the build phases.

  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Mar 25, 2024
  6. 9 remaining items

  7. removed their assignment
    on May 9, 2025
  8. self-assigned this
    on May 21, 2026
  9. added a commit that references this issue on May 26, 2026
    c823bb5
  10. github-actions commented on May 28, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #6195, which was included in the 8.13.0 release.

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

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions