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

故障描述

终端里使用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 /
MacOS出现xcrun: error: invalid active developer path, missing xcrunhttps://xucg.info/2020/11/23/1915.html
THE END
分享
二维码
< <上一篇
下一篇>>