1.安装rvm
curl -sSL https://get.rvm.io | bash -s stable
2.指定源
$ source ~/.rvm/scripts/rvm
3.安装合适版本的ruby(这里直接安装最新的2.7)
rvm install 2.7
rvm use 2.7
4.安装fastlane
gem install fastlane -NV
5.更新fastlane
fastlane update_fastlane
卸载fastline
gem/brew uninstall fastlane