iOS模拟器在启动后崩溃,"可用但没有defaultDisplay"

ric*_*ira 33 xcode ios-simulator xcode9

在将项目运行到模拟器中时,它在启动后崩溃:

Crash: 'NSInternalInconsistencyException', reason: 'Device <redacted>, Booted) is available but has no defaultDisplay'
Run Code Online (Sandbox Code Playgroud)

我已经清理了项目文件并更改了iOS映像,但无论如何它都崩溃了.任何线索?

ric*_*ira 95

关闭所有模拟器,然后运行

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
Run Code Online (Sandbox Code Playgroud)

重启服务.所有模拟器都将照常启动.

  • 这个答案是真正的救星,谢谢.遗憾的是,这个问题仍然存在于Xcode 10的最终版本中. (7认同)