故事板在 Xcode 更新到10.3(10G8)版本后坏了,应用程序不再运行

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

现在我的项目没有运行这个错误: enter image description here

/* 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

故事板现在是这样的: enter image description here

8594 次浏览

我重启了我的 Mac 电脑,问题解决了。

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

我也有同样的问题,我只是

明确的约束,对于我的情况来源是从 UITableView,并确保约束附加到安全不是监督。看到影像

从顶部的工具栏转到编辑器 > 画布 > 布局矩形非常重要,你必须重复这个步骤3次

退出 XCode 并重新打开它,所有问题都应该得到解决

我已经注意到这种情况发生时,我切换视图不同的设备8,11,4s

祝你好运