升级完Xcode10.3,编译的时候提示如下错误:
Failed to find or create execution context for description '<IBCocoaTouchPlatformToolDescription: 0x7fc845e539f0> System content for IBCocoaTouchFramework-EightAndLater <IBScaleFactorDeviceTypeDescription: 0x7fc845e500f0> scaleFactor=2x'. These intermediate objects were non-nil:
解决办法:
方法1:重启Mac。
方法2:
- 杀死所有的模拟器进程,在终端下操作如下
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService - 重新设置正确的Xcode目录
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer - 如果还不好用,重置所有的模拟器
xcrun simctl erase all
参考自:
https://stackoverflow.com/questions/57155654/xcode-10-3-installation