Xcode 11 Upgrade | Could not find iPhone X simulator | XRPackageModel 9.0.omo

后端 未结 5 964
醉梦人生
醉梦人生 2021-02-04 11:44

Anyone else getting this since upgrading from Xcode 10.3 to Xcode 11 when running react-native run-ios and any idea to get back up and running?

Core         


        
5条回答
  •  忘掉有多难
    2021-02-04 11:48

    I remember this happening before and amending:

    node_modules⁩ ▸ ⁨@react-native-community⁩ ▸ ⁨cli⁩ ▸ ⁨build⁩ ▸ ⁨commands⁩ ▸ ⁨runIOS⁩ ▸ findMatchingSimulator.js

    As a current workaround, updating:

    if (simulator.availability !== '(available)' && simulator.isAvailable !== 'YES') {
      continue;
    }
    

    To:

    if (simulator.availability !== '(available)' && simulator.isAvailable !== true) {
      continue;
    }
    

    Seems to get me back up and running.

    Hopefully this gets updated pronto.


    "react-native": "^0.59.3"

提交回复
热议问题