MacOS 升级后出现 xcrun: error: invalid active developer path, missing xcrun

版权声明:转载请评论留言 https://blog.csdn.net/solocao/article/details/83386616

升级macOS mojove,终端里使用git的时候,弹出一行莫名其妙的错误:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

解决方法,重装xcode command line:

xcode-select --install

如果没有解决问题,执行以下命令

sudo xcode-select -switch /

猜你喜欢

转载自blog.csdn.net/solocao/article/details/83386616
今日推荐