react-native run-ios Could not find iPhone X simulator | 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
基础教程推荐
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01