Xcode关联不上git,Failed to extract git version from git --version
1、有git,但是存在多个xcode的情况,关联路径不对,2种方式处理
a.使用命令:sudo xcode-select --switch /Users/feiwei/Downloads/Xcode.app
b.Xcode -->Preferences-->Locations并选择Command Line Tools
2、无git,终端执行 xcode-select --install。