ueno-llc / react-native-starter

Professional react-native starter kit with everything you'll ever need to deploy rock solid apps
https://ueno-llc.github.io/react-native-starter
MIT License
574 stars 90 forks source link

xcodebuild on AppCenter not seeing env vars #193

Closed andrejcesen closed 5 years ago

andrejcesen commented 5 years ago

xcodebuild invoked by AppCenter doesn't seem to find environment variables set on AppCenter's Build UI page.

Specifically, Xcode can't seem to find env variable SENTRY_AUTH_TOKEN, which is used in Bundle React Native code and images step. Is there any way I can get a hold of it in the xcodebuild process?

To Reproduce Steps to reproduce the behavior:

  1. When iOS build comes into Bundle React Native code and images step, this piece of code is not executed (because SENTRY_AUTH_TOKEN is not set):
    if [ ! -z "$SENTRY_AUTH_TOKEN" ]; then
    ../node_modules/@sentry/cli/bin/sentry-cli react-native xcode ../node_modules/react-native/scripts/react-native-xcode.sh
    else

Expected behavior I would expect xcodebuild for it to pick it up. "works on my machine" :)

Environment

jeremybarbet commented 5 years ago

Sorry for the delay.

Have you been able to find the issue? if not here is some things to try out:

jeremybarbet commented 5 years ago

I will close this issue, feel free to reopen it if needed