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
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.
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.
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.
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 😎
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.
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"
You can change the default simulator to use.
react-native run-ios --simulator="iPhone 11 Pro Max"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With