git:错误:SDK"macosx"找不到 [英] git: error: SDK "macosx" cannot be located

查看:263
本文介绍了git:错误:SDK"macosx"找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需将我的机器更新为优胜美地.我现在从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆