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

后端 未结 5 884
醉梦人生
醉梦人生 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 12:13

    The problem is that you are using a @react-native/cli version that doesn't detect XCode 11 simulators. You can either downgrade your XCode or install a @react-native/cli that supports it.

    If you are not managing the version of @react-native/cli directly in your package.json you can simply remove your package-lock.json or yarn.lock file and install it again:

    rm yarn.lock 
    yarn install
    

    or

    rm package-lock.json
    npm install
    

提交回复
热议问题