Git: Error: Unable to read SDK settings for MacOSX.sdk

怎甘沉沦 提交于 2019-12-03 15:33:14

问题


Error while adding in git after updating to new OS Mojave

Error

git: error: unable to read SDK settings for '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'

Error faced in:

  • Device: MacBook Pro (Retina, 13-inch, Early 2013)
  • OS: MacOS Mojave

Screenshot

Question

How to solve this error ?

Anyones help will be really appriciated.


回答1:


CommandLineTools is outdated. The below should fix it.

xcode-select --install



回答2:


Since I had just updated Xcode (using the AppStore) I had to open Xcode and let the installer finish some configuration work before Visual Studio for Mac would successfully compile my Android application again.

I thought this was weird because my solution did not include any projects targeting iOS. The solution contained just a few .NET Core library projects and an Android APK.

I also had to run the 'xcode-select --install' command.



来源:https://stackoverflow.com/questions/52665394/git-error-unable-to-read-sdk-settings-for-macosx-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!