Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git: error: SDK "macosx" cannot be located

Just updated my machine to Yosemite. I'm getting this error from Git now:

git: error: SDK "macosx" cannot be located

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.

like image 939
sethro Avatar asked May 22 '15 04:05

sethro


1 Answers

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.

like image 159
sethro Avatar answered Oct 17 '22 15:10

sethro