【Error】升级了Mojave后使用git遇到的报错xcrun: error: invalid active developer path

升级了Mojave后使用git遇到的报错:

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

解决办法:

$ xcode-select --install

参考:

https://apple.stackexchange.com/questions/254380/macos-mojave-invalid-active-developer-path

猜你喜欢

转载自blog.csdn.net/think_ycx/article/details/83551701