ios - iOS 13.0模拟器运行时不可用

标签 ios xcode swiftui ios-simulator xcode11

我安装了 Xcode-11-beta 和 macOS 10.15 beta。起初我可以正常使用 SwiftUI 预览版。但是当我尝试将 Xcode-beta 从最初安装的 ~/Downloads 目录移动到 /Applications 后,预览无法工作。这是错误:

enter image description here

所以我把它移回~/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

最佳答案

CoreSimulator 目前不喜欢 simruntime捆扎物从其下方移出。通过从 ~/Downloads 启动它意识到iOS.simruntime对于 iOS 13,那么您就移动了它。

在这种特定情况下,您可以通过杀死 com.apple.CoreSimulator.CoreSimulatorService 来解决该问题.

关于ios - iOS 13.0模拟器运行时不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56462769/

相关文章:

ios - Xcode 6 自动布局按钮相互重叠

SwiftUI:有条件的 onDelete

ios - 如何使用核心数据将对象传递给 SwiftUI 中的其他 View

iphone - iOS 上的 QuickBlox Facebook 聊天 - UDID 问题

iphone - UITableViewCells 使用 textViewDidEndEditing 将数据写入 plist

ios - 关闭 AutoLayout 的 iPhone Popover

iphone - Apple年度测试设备限额

swiftui - 在 SwiftUI 中同时流畅地动画文本随偏移量的变化

ios - 是否可以使用 Alamofire swift 在 api 命中时将数组和字典都发送到参数中?

c++ - 将数据从 .cpp 文件传递​​到 Objective c ViewController