【发布时间】:2018-06-10 02:54:22
【问题描述】:
我无法在我的 Mac 上安装任何 brew 包,并显示以下错误信息。
安装在我的 Mac 上:
- macOS 10.14 测试版 (18A293u)
- Xcode 9.3 (9E145)
- Xcode 10.0 beta (10L176w)
输入brew install xxx。输出为:
Error: Your Xcode (9.3) is too outdated.
Please update to Xcode 10.0 (or delete it).
Xcode can be updated from
https://developer.apple.com/download/more/
Error: Xcode alone is not sufficient on Mojave.
Install the Command Line Tools:
xcode-select --install
但是当我输入xcode-select --install时,它说它不可用
Xcode select install error
我的 Mac 上两个版本的 Xcode 的路径:
/Applications/Xcode-beta.app
/Applications/Xcode.app
还有我的配置输出:
xcode-select -p
/Applications/Xcode.app/Contents/Developer
酿造配置
HOMEBREW_VERSION: 1.6.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 22e9fd772926e389e264cfb328c3d810b06759f9
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 854bb90b366169915849fc9a83e941b8883cea1f
Core tap last commit: 6 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.6 =>./System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.1 build 902
Git: 2.15.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_131
macOS: 10.14-x86_64
CLT: N/A
Xcode: 9.3
XQuartz: N/A
【问题讨论】:
-
投了赞成票,因为问得很好,但也投了赞成票,因为这应该在 AskDifferent 或 SuperUser 上提出。
-
今天早些时候遇到了同样的问题。通过从 developer.apple.com 下载 CL 工具并同时运行 CLTools_SDK 和 CLTools_Executables 即可解决。
标签: xcode homebrew macos-mojave