react-native run-ios 找不到 iPhone X 模拟器 |XRPackageModel 9.0.omo

react-native run-ios Could not find iPhone X simulator | XRPackageModel 9.0.omo(react-native run-ios 找不到 iPhone X 模拟器 |XRPackageModel 9.0.omo)

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

问题描述

我首先从 Expo 开始我的项目并将其退出.现在,我正在尝试运行命令 react-native run-ios 并返回此错误:

I first started my project with Expo and ejected it. Now, I'm trying to run the command react-native run-ios and it comes back with this error:

CoreData:注释:无法在路径'/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0 加载优化模型.omo'

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'

然后它给出另一个错误:

Then it gives another error:

错误无法构建 iOS 项目.我们运行了xcodebuild"命令,但它以错误代码 65 退出.要进一步调试构建日志,请考虑使用 Xcode.app 构建您的应用程序,方法是打开 blahblahblah.xcworkspace

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening blahblahblah.xcworkspace

$ react-native run-iosinfo 找到 Xcode 工作区 blahblahblah.xcworkspaceCoreData:注释:无法在路径/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo"加载优化模型正在启动 iPhone X (iOS 12.2)...使用xcodebuild -workspace blahblahblah.xcworkspace -configuration Debug -scheme weather -destination id=E05006E8-DEB3-4317-967B-40759D275997 -derivedDataPath build/weather"构建信息来自命令行的信息用户默认值:

$ react-native run-ios info Found Xcode workspace blahblahblah.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' info Launching iPhone X (iOS 12.2)... info Building using "xcodebuild -workspace blahblahblah.xcworkspace -configuration Debug -scheme weather -destination id=E05006E8-DEB3-4317-967B-40759D275997 -derivedDataPath build/weather" info User defaults from command line:

信息 IDEDerivedDataPathOverride =/Users/blahblahblah/Desktop/blahblahblah/ios/build/blahblahblah

info IDEDerivedDataPathOverride = /Users/blahblahblah/Desktop/blahblahblah/ios/build/blahblahblah

错误无法构建 iOS 项目.我们运行了xcodebuild"命令,但它以错误代码 65 退出.要进一步调试构建日志,请考虑使用 Xcode.app 构建您的应用程序,方法是打开 blahblahblah.xcworkspace

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening blahblahblah.xcworkspace

任何帮助将不胜感激!

谢谢!

推荐答案

本期:

https://github.com/react-native-community/cli/pull/414

已在 @react-native-community/cli v1.9.8 上修复:

https://github.com/react-native-community/cli/releases/tag/v1.9.8

您的 yarn.lock 中出现超过 1.9.8 的某个版本应该可以修复它.

A bump in your yarn.lock to some version over 1.9.8 should fix it.

这篇关于react-native run-ios 找不到 iPhone X 模拟器 |XRPackageModel 9.0.omo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:react-native run-ios 找不到 iPhone X 模拟器 |XRPackageModel 9.0.omo

基础教程推荐