尝试使用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/