在运行rn app应用时,react-native run-ios 报错出现 node
解决办法react
一、react-native run-ios --simulator="iPhone 6",运行时指定启动版本ios
二、Open file: 打开:node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
npm
在30行左右 作以下替换操做react-native
// if (version.indexOf('iOS') !== 0) { // continue; // } if (version.indexOf('iOS') !== 0 && !version.includes('iOS')) { continue; }
上面的问题解决后,又遇到下面的问题。 Entry, ":CFBundleIdentifier", Does Not Existapp
解决办法:ide
1. rm -rf node_modules" 而后 "react-native upgrade" 再 "npm install" 最后,"react-native run-iosspa
2.先进入到code
cd node_modules/react-native/third-party/glog-{X}.{X}.{X}/
这里的glog-{X}.{X}.{X},X是版本号。blog
而后 控制台输入 ./configure 编译下文件。
./configure
若是还不能解决问题:请访问;Print: Entry, “:CFBundleIdentifier”, Does Not Exist