Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

CoreData: annotation:  Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo'
error Could not find iPhone X simulator
like image 525
Leo Avatar asked Sep 23 '19 10:09

Leo


People also ask

Could not find iPhone x simulator Xcode 11?

Open xcode and go to window > Device and Simulators... go to the Simulators tab and click the + in the bottom left, here you can add iphone X. Thank you for your contribution, but the iPhone X and subsequently other simulators are already added. Removing then re-adding them has no effect.

How do I add a simulated device to Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download. When a simulator is opened from AppStudio, AppStudio Player automatically installs (if necessary) and opens in it.

Do I need Xcode for iOS simulator?

The Simulator app requires several other large directories from the Xcode distribution in order to work at all. The only official way to install all of those properly is to install the entire SDK from the dmg.


4 Answers

Xcode 11 can't see iPhoneX or Other Simulator - First need to add new Simulator - Then click on the bottom left of the Simulator then choose device you wanna add 😎

First need to add new Simulator

Then click on the bottom left of the Simulator then choose device you wanna add 😎

like image 162
Chea Sambath Avatar answered Sep 22 '22 17:09

Chea Sambath


Open xcode and go to window > Device and Simulators... go to the Simulators tab and click the + in the bottom left, here you can add iphone X.

like image 38
Jason Emery Avatar answered Sep 23 '22 17:09

Jason Emery


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"

like image 43
Leo Avatar answered Sep 23 '22 17:09

Leo


You can change the default simulator to use.

react-native run-ios --simulator="iPhone 11 Pro Max"

like image 29
Andrei Calazans Avatar answered Sep 25 '22 17:09

Andrei Calazans