react-native run-ios找不到iPhone X模拟器| XRPackageModel 9.0.omo [英] react-native run-ios Could not find iPhone X simulator | 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.要进一步调试构建日志,请考虑通过打开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-ios 信息找到Xcode工作区blahblahblah.xcworkspace CoreData:注释:无法在路径'/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调试-scheme weather -destination id = E05006E8-DEB3-4317-967B-40759D275997 -derivedDataPath构建/天气"进行构建 info用户从命令行默认:
$ 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:
info IDEDerivedDataPathOverride =/Users/blahblahblah/Desktop/blahblahblah/ios/build/blahblahblah
info IDEDerivedDataPathOverride = /Users/blahblahblah/Desktop/blahblahblah/ios/build/blahblahblah
错误无法构建iOS项目.我们运行了"xcodebuild"命令,但它退出并显示错误代码65.要进一步调试构建日志,请考虑通过打开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.pro锁定到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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!