react-native run-ios Could not find iPhone 6 simulator 和 Entry, ":CFBundleIdentifier", Does Not Exis

在運行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.jsnpm

在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

相關文章
相關標籤/搜索