【发布时间】:2019-06-05 14:40:28
【问题描述】:
我随 macOS 10.15 beta 一起安装了 Xcode-11-beta。一开始我可以正常玩SwiftUI preview。但是在我尝试将 Xcode-beta 从最初安装它的~/Downloads 目录移动到/Applications 之后,预览无法工作。这是错误:
所以我把它移回~/Downloads,希望一切都会像以前一样顺利。但它给出了同样的错误。
在此之后,我重新安装了它,但仍然出现此错误。谁能帮我修一下?
诊断报告的内容是这样的:
== DATE:
Wednesday, June 5, 2019 at 10:25:46 PM China Standard Time
== PENDING U
PDATE REASONS:
== PREVIEW UPDATE ERROR:
unexpected error occurred
Error Domain=com.apple.CoreSimulator.SimError Code=161 "The iOS 13.0 simulator runtime is not available." UserInfo={NSLocalizedRecoverySuggestion=Download the iOS 13.0 simulator runtime from the Components section in Xcode's Preferences., NSLocalizedFailureReason=runtime path not found, NSLocalizedDescription=The iOS 13.0 simulator runtime is not available.}
== VERSION INFO:
Tools: 11M336w
OS: 19A471t
== ENVIRONMENT:
[x] In valid workspace
[x] Project is using the new build system
Previews are available for targets that are built with the new build system. Change your project to use the new build system.
[x] Selected scheme (Landmarks)
Select a scheme from the scheme picker in the toolbar
[x] Selected run destination (iPhone 8)
Select a run destination from the scheme picker in the toolbar
[x] Have workspace arena
Try quitting and reopening your workspace
[x] Have build arena
Try quitting and reopening your workspace
[x] Open file has supported build settings
【问题讨论】:
标签: ios xcode swiftui ios-simulator xcode11