1. 程式人生 > >mac 更新系統後無法使用 git

mac 更新系統後無法使用 git

更新了系統後,進入到git工程目錄,輸入git命令,提示錯誤:

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

解決方案:在終端輸入:xcode-select --install