svn 提交报xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

svn 提交报如下错误 :

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.
 
出现这个错误一般要么是你当前的电脑上面安装了连个xcode ,要么就是你更改了xcode的名称 导致配置的路径找不到了
你之前的xcode路径改变了
 
解决办法 只需要终端执行命令: sudo xcode-select —switch 当前使用的xcode路径 ,即可
原文地址:https://www.cnblogs.com/syios/p/7692642.html