升级了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