Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git:错误:无法读取MacOSX.SDK的SDK设置_Git_Terminal_Macos Mojave - Fatal编程技术网

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

Git:错误:无法读取MacOSX.SDK的SDK设置,git,terminal,macos-mojave,Git,Terminal,Macos Mojave,更新到新操作系统Mojave后添加git时出错 错误 git:错误:无法读取“/Library/Developer/CommandLineTools/SDKs/MacOSX.SDK”的SDK设置 中遇到的错误: 设备:MacBook Pro(视网膜,13英寸,2013年初) OS:MacOS Mojave 屏幕截图 问题 如何解决这个错误 任何人的帮助都会受到欢迎。CommandLineTools已经过时。下面的代码应该可以修复它 xcode-select --install 因为我刚刚

更新到新操作系统Mojave后添加git时出错

错误

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

中遇到的错误:

  • 设备:MacBook Pro(视网膜,13英寸,2013年初)
  • OS:MacOS Mojave
屏幕截图

问题

如何解决这个错误


任何人的帮助都会受到欢迎。

CommandLineTools已经过时。下面的代码应该可以修复它

xcode-select --install

因为我刚刚更新了Xcode(使用AppStore),所以在Visual Studio for Mac再次成功编译我的Android应用程序之前,我必须打开Xcode并让安装程序完成一些配置工作

我觉得这很奇怪,因为我的解决方案没有包括任何针对iOS的项目。该解决方案只包含几个.NET核心库项目和一个Android APK


我还必须运行“xcode选择--安装”命令。

您只需转到xcode首选项>位置>命令行工具>选择最新的xcode版本


我必须执行以下操作才能解决:

xcode-select --install

sudo xcode-select -switch /Library/Developer/CommandLineTools

这对我有用。所以我要投票了。Mojave在MBP 15 2017上使用iTerm。我希望它能工作,但我需要下载命令行工具,因为该问题无法安装软件,因为软件更新服务器当前不提供该软件。然后我引用了找到更新的link()。但Xcode 9.4.1的命令行工具(macOS 10.14)对我来说并不适用,应该是Xcode的默认工具。过去我们多久做一次,我们多久做一次。。。回答/提醒的thx