升级完XCode之后,bulid失败,出现如下错误:
问题1:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Command CompileC failed with a nonzero exit code
解决办法:
重装xcode command line:
xcode-select --install
如果依旧没有解决,执行如下命令:
sudo xcode-select -switch /
上述问题解决。