iOS 模拟器在 "available but has no defaultDisplay" 启动后崩溃

iOS Simulator crashes after boot with "available but has no defaultDisplay"

当运行一个项目进入模拟器时,它在启动后崩溃:

Crash: 'NSInternalInconsistencyException', reason: 'Device <redacted>, Booted) is available but has no defaultDisplay'

我已经清理了项目文件并更改了 iOS 图像,但它还是崩溃了。有什么线索吗?

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

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

重新启动服务。所有模拟器将照常启动。