天天看點

MacOS更新後解決xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

今天更新MacOS後出現如下錯誤:

[email protected] ~/Git/my/community % git add .
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

           

解決方法:執行如下指令

xcode-select --install
           

Source: StackOverFlow