xcrun: error: active developer path (/Users/XJW/Desktop/Xcode.app/Contents/Developer) does not exist, use `xcode-select --switch path/to/Xcode.app` to

问题: 装了双xcode     删掉低版本  (注意:低版本xcode 开启过项目 )  创建git时报错

解决方法: 

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

原文地址:https://www.cnblogs.com/codeforcode/p/5079816.html