本人机器提示语如下:
/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
处理办法:
1. 打开本地文件目录 ~/Library/Developer/CoreSimulator/Profiles/Runtimes folder 清空
2. 重启 Xcode,cmd + shift +k 多clean几遍
3. 运行Xcode
此时可能会出现 xib文件布局错乱的情况,而且是全部xib都出了问题,查看xib页面,没有具体的爆红提示。此时关闭Xcode 重启,如果无效,再关机重启电脑------>重启Xcode-------->clean------>运行。问题消失。