天天看点

mac intellij idea 从git上拉取代码xcrun: error: invalid active developer path...missing xcrun at:...

mac 用idea从git上下载项目的时候出现错误:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
mac intellij idea 从git上拉取代码xcrun: error: invalid active developer path...missing xcrun at:...

解决办法

打开终端输入:
xcode-select --install
           
重启intellij idea即可
mac intellij idea 从git上拉取代码xcrun: error: invalid active developer path...missing xcrun at:...