我无法在Mac上安装任何带有以下错误信息的Brew软件包。
在我的Mac上安装:
输入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
您将需要安装“ Xcode的10.0测试版从” https://developer.apple.com/download/ 和 “ 命令行工具(MacOS的10.14)的Xcode的10测试版 ”,从
由其他注释贡献的更新,在安装“命令行工具”之后,您还需要在终端中执行以下命令。
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句