admin管理员组

文章数量:1345391

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

本文标签: javascriptRun a React Native app without launching XcodeStack Overflow