1. 程式人生 > >MacOS:xcrun: error: invalid active developer path

MacOS:xcrun: error: invalid active developer path

mac下執行git操作或者make編譯時,可能會出現如下錯誤:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
可能是由於xcode問題造成的,可在終端中執行如下命令:

xcode-select --install