将Xcode更新到版本10.3(10G8)后情节提要断开,并且应用程序不再运行

Alf*_*lfi 76 xcode storyboard

我刚刚将Xcode更新到版本10.3(10G8)。

现在,我的项目未运行并出现以下错误: 在此处输入图片说明

/* com.apple.actool.errors */
: error: Failed to find a suitable device for the type IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) with runtime iOS 12.4 (12.4 - 16G73) - com.apple.CoreSimulator.SimRuntime.iOS-12-4
    Failure Reason: Failed to create new simulator device that matches IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) for runtime iOS 12.4 (12.4 - 16G73) - com.apple.CoreSimulator.SimRuntime.iOS-12-4 (Invalid runtime: com.apple.CoreSimulator.SimRuntime.iOS-12-4)
    Underlying Errors:
        Description: Invalid runtime: com.apple.CoreSimulator.SimRuntime.iOS-12-4
/* com.apple.actool.compilation-results */
/Users/xxx/Library/Developer/Xcode/DerivedData/xxxxx-dxlvvymxzdfqjubnuntqlxggtyja/Build/Intermediates.noindex/xxxxx.build/Debug-iphonesimulator/xxxxx.build/assetcatalog_generated_info.plist
Run Code Online (Sandbox Code Playgroud)

现在,情节提要是这样的: 在此处输入图片说明

z33*_*z33 83

我重新启动了Mac,问题解决了。

  • 但是,它不能解决将您发送到https:// localhost的“发行说明”和“ Xcode新增功能”菜单 (8认同)
  • 如果构建失败也可以使用 (4认同)
  • “您是否尝试过将其关闭然后再次打开?” (4认同)
  • 如果更新后看不到模拟器,则此解决方案也可以使用。 (2认同)

Jus*_*ely 82

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService从终端运行解决了我的问题。

  • @rmaddy,这是一个比公认答案更好的答案 (10认同)
  • 哇!就像魔术一样!感谢您的时间和精力! (3认同)
  • 这个答案解决了我的问题,谢谢 (2认同)
  • 对我来说效果很好,这意味着我不必重新启动我的机器。谢谢! (2认同)
  • 天哪,这是一个宝石般的答案!我对一个正在经历 SWIFT 重写的项目感到非常害怕——我差点就重新设计了所有的故事板。你节省了我的时间和精力。 (2认同)