XCode升级错误:Command CompileC failed with a nonzero exit code 解决办法

阅读 12

2024-03-21

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

上述问题解决。

精彩评论(0)

0 0 举报