git出現xcrun: error: invalid active developer path(Mac)


具體錯誤

可能是升級了系統,也可能是更換了路徑

想對系統的路徑進行配置的時候提示題目中的錯誤

記錄下來,以便以後需要。


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  

此時會提示安裝一個軟件,等會就好了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章