Skip to content

Using React-native-sentry with Schemes #473

@Titozzz

Description

@Titozzz

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

I have following issue:

Hello, I'm trying to get this react-native-sentry to work with https://github.com/thekevinbrown/react-native-schemes-manager to be able to use multiples schemes (Dev / Staging / Prod, with debug and release mode for each). But I can get react-native-sentry to upload the js file during the build with XCode.

The Bundle react native step looks like this:

export NODE_BINARY=node
export SENTRY_PROPERTIES=sentry.properties
export DEVELOPMENT_BUILD_CONFIGURATIONS="+(ProductionDebug|StagingDebug|DevelopmentDebug|DemoDebug|Debug)"
$NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli react-native xcode --force-foreground ../node_modules/react-native-schemes-manager/lib/react-native-xcode.sh

I've used --force-foreground to see what's happening a bit more, and I get this

Warning: build produced no sourcemaps.

I have 2 theories, either sentry cannot understand the custom build script, or because the build is not in Debug folder , but rather inside something like this :

bundle: Writing sourcemap output to: /Users/thibault/Library/Developer/Xcode/DerivedData/brigad-blvtuinqhestvhbeghpelwzyudhd/Build/Products/StagingDebug-iphoneos/Brigad Staging.app/main.jsbundle.map

Do you have an idea ?
Thank you :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions