我已经将Xcode版本更新为7.3.1。当我使用'git status‘时,我发现一个错误!详情如下:
$git status
sh: line 1: 1601 Segmentation fault: 11 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find git 2> /dev/null
git: error: unable to find utility "git", not a developer tool or in PATH谢谢你先进!
发布于 2016-06-06 04:43:31
最好的解决方案是下载并安装它--即使假设它已经安装了:https://git-scm.com/download/mac。
发布于 2018-02-12 01:49:19
这也发生在我的升级到高塞拉和XCode到9。这个序列已经修复了它。
xcode-select --install
sudo xcode-select -s /Library/Developer/CommandLineTools在https://davidwalsh.name/fix-git-high-sierra-upgrade上找到这个答案(文章和评论)。
发布于 2017-09-09 21:17:10
我也有同样的问题--我退出了我的bash会话(关闭了终端)并启动了一个新的,它修复了它。
https://stackoverflow.com/questions/37648886
复制相似问题