react-native run-ios : Could not find iPhone * simulator

Could not find iPhone * simulator

找到项目中node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js

1、if (version.indexOf('iOS') !== 0 )  替换成    if (!version.includes("iOS" ))

2、if(simulator.availability!=='(available)')  替换成  if(simulator.isAvailable!== true)

3、使用 react-native run-ios --simulator="iPhone *"  指定模拟器运行

参考:https://segmentfault.com/a/1190000017855059


CFBundleIdentifier", Does Not Exist

找到项目中node_modules/react-native/third-party/glog-{X}.{X}.{X},这里的glog-{X}.{X}.{X},X是版本号。

然后cd到glog-{X}.{X}.{X},命令行运行 ./configure 编译下文件。

./configure 

你可能感兴趣的:(react-native run-ios : Could not find iPhone * simulator)