Git:错误:无法读取MacOSX.sdk的SDK设置

Pra*_*Das 46 git terminal macos-mojave

更新到新的OS Mojave后添加git时出错

错误

git:错误:无法读取'/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'的SDK设置

遇到错误:

  • 设备:MacBook Pro(Retina,13英寸,2013年初)
  • 操作系统:MacOS Mojave

截图 终端屏幕截图

如何解决这个错误?

任何人的帮助都会非常受欢迎.

小智 92

CommandLineTools已过时.以下应该解决它.

xcode-select --install
Run Code Online (Sandbox Code Playgroud)

  • 它对我有用.所以我很赞成.2017年MBP使用iTerm的Mojave. (4认同)