react-native run-iosCould not find iPhone 6 simulator 和 Entry, ":CFBundleIdentifier", Does Not Exist

When you run rn app application, react-native run-ios error occurs  

Solution

 1, react-native run-ios --simulator = "iPhone 6", specifies the version running start

 2, Open file: Open:node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js

Alternatively do the following operations on line 30

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

 

After the above problem is solved, we encountered the following problem. Entry, ": CFBundleIdentifier", Does Not Exist


Solution:

  1. rm -rf node_modules" 然后 "react-native upgrade" 再 "npm install"  最后,"react-native run-ios

  2. The first to enter

cd node_modules/react-native/third-party/glog-{X}.{X}.{X}/

  Here glog- {X}. {X}. {X}, X is the version number.

  Then enter the next console ./configure compile the file.

./configure

 If this does not solve the problem: please visit; Print: the Entry, ": CFBundleIdentifier", Does Not Exist

   

 

Guess you like

Origin www.cnblogs.com/bruce-gou/p/11111494.html