1. 程式人生 > >mac執行 git 時出現xcrun: error: invalid active developer path解決方法

mac執行 git 時出現xcrun: error: invalid active developer path解決方法

mac執行git命令時候出現:

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

原因是:重灌了xcode,環境導致的!

解決方法:

開啟終端輸入

 xcode-select --install

回車後,系統彈出下載xcode,點選確認,下載完成後即可。