Xcode升級新版本后,編譯項目,突然報錯, 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。找了一些國內博客中的答案,試了沒效果,最終找到一個有效的解決辦法,在終端中執(zhí)行以下命令,輸入電腦密碼,然后重啟Xcode就好了
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
完