1.Xcode升級10.3重新運行出現(xiàn):
/xxx/Assets.xcassets:-1: 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
2.問題原因舊版本的Xcode安裝了新版模擬器包
3.解決方法:
在終端輸入一下命令:
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService?
關(guān)閉模擬器服務(wù)線程,重新運行項目即可。