早上git更新 发现错误如下
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
想了想是因为周末要下载个大点的游戏 磁盘不够 就顺手给xcode卸载了 网上找的没个管用的 都是让你装上xcode 不废话了
sudo xcode-select --reset
xcode-select是xcode的一个插件 不想要直接卸了就行 标准卸载的时候是不会删除这个插件的 执行 完事 搞定