xcode - 使用终端和git时出现Xcode错误

标签 xcode git macos macos-mojave

尝试使用git时出现此错误:

Mitchells-MacBook-Pro:/ Mitch$ git
dyld: Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData
  Referenced from: /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

我正在MacOS Mojave 上运行。我试图运行命令:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

这似乎并不能解决问题。任何提示将是伟大的。

最佳答案

尝试通过App Store升级Xcode

关于xcode - 使用终端和git时出现Xcode错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53086525/

相关文章:

iphone - 什么是私有(private)框架以及我们将如何使用它们?

ios - UITextField 可以发送它的 Action 两次。这是一个 iOS 错误,还是我犯了一个错误?

ios - swift 这些协议(protocol)有什么区别

git - jenkins Nexus Artifact uploader 400

git - 我可以非交互方式使用 `git checkout --patch` 吗?

c - Mac 上的 libevent,进行安装

macos - 在 Mac 上升级 Git

ios - iOS:未呈现NSMutableAttributedString.AddAttributes。 (Xamarin)

ios - Objective-C 中的警告 "Method definition not found"。从类别文件调用方法

java - 在 IntelliJ 中每次 git pull 后生成的源根消失了