执行git命令出现 xcrun: error:

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change

 

执行 sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 即可解决。
原文地址:https://www.cnblogs.com/wangguimin/p/4651946.html