gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 15:03:18 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com