mac下出现xcrun: error导致git无法使用的解决办法,如下所示
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
原因在于:我把xcode删除了
解决方法:
xcode-select --install
出现下图,等待安装即可

网友评论