美文网首页
react-native run-ios : Could not

react-native run-ios : Could not

作者: 失心F | 来源:发表于2019-12-06 16:06 被阅读0次

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

      本文链接:https://www.haomeiwen.com/subject/tbsegctx.html