Mac 使用git出现xcrun: error: invalid active developer path (/Library/Developer/Comma

173 阅读1分钟

Mac使用git出现

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

解决方法
终端输入

xcode-select --install