git:错误:SDK"macosx"找不到 [英] git: error: SDK "macosx" cannot be located
问题描述
只需将我的机器更新为优胜美地.我现在从Git收到此错误:
Just updated my machine to Yosemite. I'm getting this error from Git now:
git: error: SDK "macosx" cannot be located
我能够毫无问题地运行git status
,但是类似git add
的东西似乎可以工作,但是会引发此错误.命令行工具已安装,我尝试重新安装Git.
I'm able to run git status
with no issue, but anything like git add
seems to work, but then throws this error. Command Line Tools are installed, I tried reinstalling Git.
推荐答案
不确定确切的内容,但是在升级过程中出现了一些问题.通过键入sudo rm -r /Library/Developer/CommandLineTools
卸载CommandLineTools,然后重新安装.我只是键入了一些git命令,例如:git status
,然后让操作系统提示我安装CommandLineTools.现在一切都开心了.
Not sure exactly what, but something got out of whack during the upgrade. Uninstall CommandLineTools by typing sudo rm -r /Library/Developer/CommandLineTools
then reinstall. I just typed some git command like: git status
and let the OS prompt me to install the CommandLineTools. Everything is happy now.
这篇关于git:错误:SDK"macosx"找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!