Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native - How to run on iOS device from xcode with DEV = FALSE

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?

like image 818
Yaron Levi Avatar asked Feb 07 '23 07:02

Yaron Levi


2 Answers

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

like image 197
John Avatar answered Feb 09 '23 02:02

John


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
like image 28
LuisPinto Avatar answered Feb 09 '23 02:02

LuisPinto