react-native 出现 Could not find iPhone 6 simulator 与 ":CFBundleIdentifier", Does Not Exist

  • 升级Xcode 版本发现运行 react-native run-ios 时出现
Could not find iPhone 6 simulator

找到并修改项目下 /node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js 文件

    // 注释掉这部分
    // if (version.indexOf('iOS') !== 0) {
    //   continue;
    // }

    // 添加
    if (version.indexOf('iOS') !== 0 && !version.includes('iOS')) {
      continue;
    }

重新尝试 react-native run-ios 或者指定模拟器型号 react-native run-ios --simulator="iPhone 6"

  • 仍然出现 ":CFBundleIdentifier", Does Not Exist
先删除全部node依赖
rm -rf node_modules

升级 react-native 
react-native upgrade

安装依赖并 重新上面的修改
yarn install 

重新尝试 react-native run-ios

?附上相关连接 https://stackoverflow.com/questions/37461703/print-entry-cfbundleidentifier-does-not-exist

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值