XCode升级错误:Command CompileC failed with a nonzero exit code 解决办法
升级完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 /
上述问题解决。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。