使用git时,mac下报错xcrun: error: invalid active developer path (/Library/Developer/Com

472 阅读1分钟

使用git时,mac下报错xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

解决方案:在终端输入xcode-select --install 安装完成后错误消失