升级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 /
当在macOS Mojave的终端中使用Git时,可能会遇到xcrun错误,提示无效的开发者路径。本文提供了两种解决方案,包括重新安装Xcode命令行工具和使用sudo xcode-select命令进行切换。
509

被折叠的 条评论
为什么被折叠?



