一.查看镜像源
gem sources
二.删除
三.替换
gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/
brew install fastlane 安装失败
Warning: You are using macOS 14.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.
Error: ruby: unknown or unsupported macOS version: :dunno
更新系统到macOS14后未更新brew环境
执行更新命令
cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update
再次安装brew install fastlane 成功了