12

当我尝试在模拟器中运行该应用程序时,我持有 Xcode 8.3.2 和 Xcode 9 beta 1,并且我的项目在 Xcode 8.3.2 中运行。我收到以下错误。

Images.xcassets: error: Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-2x with runtime SimRuntime : 10.3 (14E269) - com.apple.CoreSimulator.SimRuntime.iOS-10-3
    Failure Reason: Failed to create SimDeviceSet at path /Users/Mac/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.
    Underlying Errors:
        Description: Failed to initialize simulator device set.
        Failure Reason: Failed to subscribe to notifications from CoreSimulatorService.
        Underlying Errors:
            Description: Error returned in reply to notification request: Connection invalid
            Failure Reason: Software caused connection abort
/* com.apple.actool.document.notices */
4

3 回答 3

31

对我来说,它无助于清洁。我必须运行sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService,然后我才能通过模拟器启动应用程序

于 2019-07-05T13:19:10.703 回答
10

我遇到了这个错误并通过从 Xcode 菜单中打开 Simulator 来解决它。

Xcode-> Open Developer Tool->Simulator

模拟器打开并完成启动后,我清理并重建了项目。

于 2017-08-04T20:51:30.203 回答
1

尝试清理项目,然后运行我所做的

转到产品 > 清洁,然后运行

于 2017-06-11T15:06:33.520 回答