git: error: SDK “macosx” cannot be located

前端 未结 2 881
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 19:51

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

相关标签:
2条回答
  • 2021-01-18 20:39

    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.

    0 讨论(0)
  • 2021-01-18 20:44

    I was also getting the git: error: SDK "macosx" cannot be located which lead me to this page.

    I was also getting the message like "too many files open" and "could not fork".

    Closing Spotify solved by problem. I did not reinstall Git.

    0 讨论(0)
提交回复
热议问题