代码之家  ›  专栏  ›  技术社区  ›  wzso

iOS 13.0模拟器运行时不可用

  •  0
  • wzso  · 技术社区  · 7 年前

    SwiftUI preview 正常情况下。但是在我试图将Xcode beta从 ~/Downloads 我最初安装它的目录 /Applications

    enter image description here

    所以我把它移回了 ~/下载 ,希望事情能像以前一样顺利。但它给出了同样的错误。

    在这之后,我重新安装它,我仍然得到这个错误。有人能帮我修一下吗?

    诊断报告的内容如下:

    == 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
    
    0 回复  |  直到 6 年前
        1
  •  24
  •   russbishop    7 年前

    simruntime 包裹被从下面移走。从…发射 ~/Downloads 它意识到 iOS.simruntime 对于iOS 13,你移动了它。

    在这种情况下,你可以通过杀戮来解决这个问题 com.apple.CoreSimulator.CoreSimulatorService

        2
  •  17
  •   wzso    7 年前

    奇怪的是我早上醒来就启动了电脑 Canvas iOS 13.0 Simulator 现在可以工作了。

    所以,我想解决这个问题的办法可能只是残酷的重新开始

        3
  •  3
  •   gifpb    6 年前

    Xcode11升级以一种我不完全理解的奇怪方式破坏了模拟器——我尝试过的任何东西都不能在升级后让模拟器运行,而且我也找不到关于这个问题的明确答案 为什么?

    • sudo xcrun simctl shutdown all
    • sudo xcrun simctl erase all
    推荐文章