4

When running my react native app on the connected iPhone I see that the app is being run with DEV=TRUE: enter image description here

I am running the app by opening the xcode project file, and pressing the play button.

How can I do the same but make it run with DEV = false?

2 Answers 2

8

Hold the option key when you hit run in xcode and change the drop down from debug to release.

Sign up to request clarification or add additional context in comments.

Comments

1

On the react website you can find how to do this

react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundle

1 Comment

I did this. And indeed the bundle file is created, but this dose not change things. When I press play in xcode, I still get dev=true.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.