Sentry-react-native: Upload debug symbol in development ?

Created on 20 Sep 2017  路  6Comments  路  Source: getsentry/sentry-react-native

OS:

  • [x] MacOS

_Platform:_

  • [x] iOS

Hi there,
i'm using this lib with version 0.21.1 && rn version is 0.44.0, and it works fine.
but recently i found it upload debug symbol automatical when i using ios simulator in development.
it makes me confused, i didn't change any code and it happened.
is there a way to resolve this porblem? thx!

Most helpful comment

looks like in Xcode it's possible to limit a "Run Script" in a build phase in 2 ways (see the answers):
https://stackoverflow.com/questions/3614017/how-can-i-limit-a-run-script-build-phase-to-my-release-configuration

All 6 comments

Uploading the debug symbols is not a real issue, sentry-cli runs in background and uploads the dSYMs.
I am not really sure though why it suddenly started.
To disable it you have to change the run script in Xcode to exclude DEBUG builds.

@HazAT are you able to elaborate on which script needs to be changed (ie name and location) and how to change it? Thanks.

Reference:

To disable it you have to change the run script in Xcode to exclude DEBUG builds.

Same question here. Instead of manually disabling the upload of debug symbols for every Debug build, how could we set this for all Xcode Debug builds AND also via an ENV variable when running react-native run-ios?

For example (suggestion):

SKIP_SENTRY_UPLOAD=true react-native run-ios

disabling manually (thumbs down)
onova_xcodeproj

We have a horrible internet connection, and uploading few megabytes takes minutes :'(

Thanks

@HazAT Hey! Please advice

export SENTRY_PROPERTIES=sentry.properties

# Setup nvm and set node
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"

if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
. "$HOME/.nvm/nvm.sh"
elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
. "$(brew --prefix nvm)/nvm.sh"
fi

[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"

../node_modules/@sentry/cli/bin/sentry-cli upload-dsym

How to force this script to upload only not DEBUG builds?

looks like in Xcode it's possible to limit a "Run Script" in a build phase in 2 ways (see the answers):
https://stackoverflow.com/questions/3614017/how-can-i-limit-a-run-script-build-phase-to-my-release-configuration

@gianpaj Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThomasLarge picture ThomasLarge  路  3Comments

kenobi91 picture kenobi91  路  3Comments

poocart picture poocart  路  3Comments

brainbicycle picture brainbicycle  路  3Comments

sercanov picture sercanov  路  3Comments