最近刚升级了 mac,在使用 homebrew 的时候会提醒:
Warning: You are using macOS 11.0.
We do not provide support for this released but not yet supported version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or any other official channels. You are responsible for
resolving any issues you experience while you are running this
released but not yet supported version.
尝试安装某个命令行工具的时候会报错:
Error: Your CLT does not support macOS 11.0.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
Error: An exception occurred within a child process:
SystemExit: exit
在社区的搜索结果:
https://github.com/GoogleContainerTools/kpt/issues/962 和我一样的问题
https://discourse.brew.sh/t/macos-big-sur-issue/8407 同上
https://github.com/Homebrew/brew/issues/7857 说由于 CI 环境缺失最近几个不会支持 arm 下的 homebrew
p.s.: 机器是 Intel CPU.
1
GTD 2020-11-17 13:26:53 +08:00
我也是这样,看见这个真闹心,还是用 apfs snapshot 回退到没有 homebrew 的状态,等新版本出来了再安装吧。再等等了
|
2
dingdayu 2020-11-17 16:44:19 +08:00 2
如果仅仅是上面的提示,你可以通过更新 Xcode 12.2 来解决(请在安装后,手动打开一次,会提示安装 Xcode Tools ),如果更新 Xcode 不能够解决你的问题,那么请看下面的方案:
1. 更新 Command Line Tools ```bash softwareupdate --all --install --force ``` > 由于你刚更新的 xcode,不出意外会提示,没有可用的更新:`No new software available.` 2. 手动移除 CommandLineTools,然后重新安装: ```bash sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install ``` 执行成功后,可以通过下面的命令,查询版本: ```bash xcodebuild -version ``` 通过以上两个方案,大概率你已经解决你所遇到的问题,如果还没有解决,希望 `brew doctor` 能够给你帮助。 |
4
jaylee4869 OP @dingdayu 好诡异,都是 12.2,文件签名也一样,删除后重新安装就好了!
|
5
WallaceYYLi 2020-11-19 12:13:11 +08:00
擦,我也是一样,删除重新安装后就莫名其妙好了😓
|