简体   繁体   中英

React Native: What is the difference between running app with Xcode vs `react-native run-ios`?

I know that clicking run in Xcode builds and runs the project. But running react-native run-ios also builds and runs it. What's the difference other than that Xcode has more specific error messages?

react-native run-ios 

is nothing but a CLI to help get you started with much more easier and faster ways to boot up the app. But for this command to execute you need to have Xcode installed and the build settings should be set to legacy so that it can be build and run properly.

The thing is suppose you want to run an app, opening the xcworkspace in your Xcode and then launching xcode, then indexing etc takes a lot of time.

SO thats where the CLI, react-native run-ios helps to build faster. but at the end its the same build. This article will explain beautifully how it works. rn-ios

Hope it helps. feel free for doubts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM