本文介绍了Xcode 11升级|找不到iPhone X模拟器| XRPackageModel 9.0.omo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 10.3 升级到以及是否有任何想法可以恢复运行?

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

推荐答案

我记得这种情况发生在修改之前:

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;
}

收件人:

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

似乎可以让我重新启动并运行.

Seems to get me back up and running.

希望这会更新pronto.

Hopefully this gets updated pronto.

"react-native": "^0.59.3"

这篇关于Xcode 11升级|找不到iPhone X模拟器| XRPackageModel 9.0.omo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 06:27