- Run the upgrade version of Xcode found
react-native run-ios
when
Could not find iPhone 6 simulator
Under the project to find and modify /node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
files
// 注释掉这部分
// if (version.indexOf('iOS') !== 0) {
// continue;
// }
// 添加
if (version.indexOf('iOS') !== 0 && !version.includes('iOS')) {
continue;
}
Retry react-native run-ios
or 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