升级完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 /

上述问题解决。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐