[英]Run a React Native app without launching Xcode?
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). 如果使用Xcode一次构建项目,则可以将其关闭,在项目根目录中运行
npm start
(以启动打包程序),启动Simulator(也许使用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. 由于您是用Xcode一次构建的,因此该应用程序将安装在模拟器中,因此您可以运行它,整个CMD + R刷新过程将起作用。
Fire up the server with: 使用以下命令启动服务器:
$ npm start
Build/run the app in the ios simulator: 在ios模拟器中构建/运行应用程序:
$ react-native run-ios
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.