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

  • Run the upgrade version of Xcode found react-native run-ioswhen
Could not find iPhone 6 simulator

Under the project to find and modify /node_modules/react-native/local-cli/runIOS/findMatchingSimulator.jsfiles

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

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

Retry react-native run-iosor specify Simulator Modelreact-native run-ios --simulator="iPhone 6"

  • Still show up ":CFBundleIdentifier", Does Not Exist
先删除全部node依赖
rm -rf node_modules

升级 react-native 
react-native upgrade

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

Try again react-native run-ios

Attach the relevant link https://stackoverflow.com/questions/37461703/print-entry-cfbundleidentifier-does-not-exist

Guess you like

Origin blog.csdn.net/Ruffaim/article/details/94215250