1. 程式人生 > >升級mac Mojave系統,使用git出現xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandL

升級mac Mojave系統,使用git出現xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandL

升級mac Mojave系統後 無法使用git,出現如下問題
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

解決
安裝Command Line Tools,Command Line Tools是在Xcode中的一款工具
xcode-select --install