具體錯誤
可能是升級了系統,也可能是更換了路徑
想對系統的路徑進行配置的時候提示題目中的錯誤
記錄下來,以便以後需要。
git config -l
具體提示的內容是:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解決辦法
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
此時會提示安裝一個軟件,等會就好了。