Mac 执行git命令报错xcrun: error: invalid active developer path的解决办法

报错

 git clone

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

C02M71L9F8J2:~ pub_pawf_autotest$ git clone http://git-ma.paic.com.cn/DINGXIANZHI795/auto_link.git

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

 

terminal 执行:

xcode-select --install

 

猜你喜欢

转载自www.cnblogs.com/testway/p/9008254.html