升級完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