react-native环境搭建遇到的问题
按照React-Native上的步骤完成后,初始化AwesomeProject成功,但是在react-native run-ios时遇到问题:
解决:删除 .rncache 重新下载
rm -rf node_modules && rm -rf ~/.rncache && yarn
npm install
react-native run-iossimulator can’t found: 先打开simulator
解决:
cd /Applications/Xcode.app/Contents/Developer/Applications
open -n Simulator.app
cd AwesomeProject
react-native run-ios
最后终于顺利看到初始化界面了。
3.cmd+R不能刷新
simulator中连接keyboard
问题解决参考:
http://www.cnblogs.com/yazhengwang/p/7237871.html
https://*.com/questions/38099010/running-multiple-ios-simulators-with-react-native