mdere
mdere

Reputation: 93

React Native IOS Xcode release build opens metro server after following documentation

So following this .... https://facebook.github.io/react-native/docs/running-on-device.html#building-your-app-for-production

Why does metro still open for release?

Upvotes: 1

Views: 1915

Answers (1)

Maxim Toyberman
Maxim Toyberman

Reputation: 2006

Choose your Target go to Build Phases open Start Packager script and replace

if [ -z "${RCT_NO_LAUNCH_PACKAGER+xxx}" ] ; then

with

 if [ -z "${RCT_NO_LAUNCH_PACKAGER+xxx}" ] && [ "$CONFIGURATION" == "Debug" ] ; then

Upvotes: 8

Related Questions