1. 程式人生 > >【Error】升級了Mojave後使用git遇到的報錯xcrun: error: invalid active developer path

【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