解决 Failed to find a suitable device for the type IBSimDeviceTypeiPad2x
问题描述
Failed to launch tool with description <IBCocoaTouchPlatformToolDescription: 0x7f85b2c99300> System content for IBCocoaTouchFramework-EightAndLater <IBScaleFactorDeviceTypeDescription: 0x7f85b2cb71b0> scaleFactor=2x: Failed to find or create execution context for description '<IBCocoaTouchPlatformToolDescription: 0x7f85b2c99300> System content for IBCocoaTouchFramework-EightAndLater <IBScaleFactorDeviceTypeDescription: 0x7f85b2cb71b0> scaleFactor=2x'. These intermediate objects were non-nil:
Underlying Errors:
Description: 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
查看了一下,目前网上的方法。
1 clean
2 清除runtime文件夹
3 清除 DerivedData
完全无用 。
最佳解决方案。
1 重启mac 【信我绝对有用】
🐷 10.3 我不知道重启管不挂用,我是换回 10.2 重启 恢复的。
抓紧下,趁还没下班。