最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Run a React Native app without launching Xcode? - Stack Overflow

programmeradmin0浏览0评论

Can an iOS app (built entirely with React Native) be built/run from the mand line? PhoneGap has a nice ios-sim utility for doing just that, but I haven't had any luck with it.

Can an iOS app (built entirely with React Native) be built/run from the mand line? PhoneGap has a nice ios-sim utility for doing just that, but I haven't had any luck with it.

Share Improve this question edited Mar 27, 2015 at 0:50 candlejack 1,2092 gold badges24 silver badges52 bronze badges asked Mar 27, 2015 at 0:26 senornestorsenornestor 4,1652 gold badges36 silver badges33 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

If you build the project once using Xcode, then you can close it, run npm start in your project root (to start the packager), fire up the Simulator (maybe using ios-sim). Since you built it once in Xcode, the app will be installed in the simulator so you can just run it and the whole CMD+R refresh process will work.

Fire up the server with:

$ npm start

Build/run the app in the ios simulator:

$ react-native run-ios
发布评论

评论列表(0)

  1. 暂无评论