Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoreData: annotation: Failed to load optimized model (React Native)

I can not start my react native application anymore. I updated XCode yesterday, maybe it has to do with it?

$ react-native run-ios

Found Xcode workspace xyz.xcworkspace
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'
dyld: Symbol not found: _SimAudioHostUseSystemDefaultDeviceUID
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/../../Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit (which was built for Mac OS X 10.12)
Expected in: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
in /Applications/Xcode.app/Contents/Developer/usr/bin/../../Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
like image 318
Jan F. Avatar asked Sep 28 '17 07:09

Jan F.


3 Answers

If you just updated your Xcode to Xcode 11.1 simply go to Xcode->preferences->Locations and change the command line tool to 11.0, this worked for me!

like image 172
Syed Azeem Ahmed Avatar answered Oct 20 '22 01:10

Syed Azeem Ahmed


I simply had to start XCode one time after the update and then I was asked if I want to install additional components. That's all.

like image 42
Jan F. Avatar answered Oct 20 '22 03:10

Jan F.


+1 on what @Jan mentioned. This happened to me after upgrading XCode to latest, and then running react-native run-ios threw the same error. Booting up XCode prompted me to install additional components, and that resolved the issue.

like image 40
togume Avatar answered Oct 20 '22 01:10

togume