使用终端和git时得到的Xcode错误

问题描述 投票:2回答:1

我正在试图用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莫哈韦运行。我试图运行命令:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

这似乎并没有这样的伎俩。任何提示将是巨大的。

xcode git macos macos-mojave
1个回答
0
投票

尝试通过在App Store升级的Xcode

© www.soinside.com 2019 - 2024. All rights reserved.