【问题标题】:Images.xcassets: error: Failed to find a suitable device for the type SimDeviceTypeImages.xcassets:错误:找不到适合 SimDeviceType 类型的设备
【发布时间】:2017-11-09 04:13:43
【问题描述】:

当我尝试在模拟器中运行应用程序时,我持有 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 */

【问题讨论】:

  • 我在 Xcode 8.3.3 上遇到了同样的问题 - 你找到任何可行的解决方案了吗?
  • @AkashThakkar 到目前为止我没有得到任何解决方案。

标签: ios ios-simulator xcode9-beta ios11 xcode8


【解决方案1】:

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

【讨论】:

  • 谢谢!清理项目对我来说还不够......我必须运行你推荐的命令:)
  • 清洁对我来说也不够。我一定有其他问题。重新启动我的 Mac,清理了我的构建文件夹,它工作正常。
【解决方案2】:

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

Xcode -> Open Developer Tool -> Simulator

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

【讨论】:

  • 我也有这个,原来我在使用 Xcode 9.2 时在后台打开了 Xcode 8 模拟器......关闭它并打开正确的模拟器修复它:)
【解决方案3】:

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

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

【讨论】:

    猜你喜欢
    • 2017-08-06
    • 2020-01-07
    • 1970-01-01
    • 2019-08-30
    • 2022-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多