Yaron Levi
Yaron Levi

Reputation: 13079

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?

Upvotes: 4

Views: 2213

Answers (2)

John
John

Reputation: 2894

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

Upvotes: 8

LuisPinto
LuisPinto

Reputation: 1687

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

Upvotes: 1

Related Questions