Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React native packager script fails: Unsupported value of $CONFIGURATION=... #8

Open
dmur opened this issue Jan 7, 2016 · 0 comments

Comments

@dmur
Copy link

dmur commented Jan 7, 2016

I worked around the issue but it might be good to document it somewhere. When using the separate environment build instructions linked here, the resulting build config is incompatible with react-native's packager script, since that script expects the $CONFIGURATION to equal one of Debug or Release, but the $CONFIGURATION will be DEV, PROD or SYS if you follow the instructions there.

To fix it, I'm massaging the $CONFIGURATION value in the Bundle React Native code and images build phase of my app, before the packager script is executed. I changed the contents of the script to be:

// Rewrite the value of configuration to what react-native script expects.
case "$CONFIGURATION" in
  DEV)
    CONFIGURATION=Debug
    ;;
  PROD)
    CONFIGURATION=Release
    ;;
  Release)
    ;;
  *)
    CONFIGURATION=Debug
    ;;
esac

// Now the packager script can be executed normally.
../node_modules/react-native/packager/react-native-xcode.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant