【发布时间】:2020-09-23 15:02:25
【问题描述】:
运行
sudo gem install fastlane -NV
在安装 fastlane rubyzip 需要 ruby 版本 >= 2.4 时抛出错误
最初,环境设置是通过运行以下步骤完成的 -
如果安装了rvm先卸载-
rvm -v
rvm list
rvm uninstall {version_to_uninstall}
rvm use system - Switch to macOS default ruby version
rvm implode - uninstall rvm
rbenv - Ruby Environment Manager - we will use this to install ruby
brew install rbenv ruby-build
rbenv install 2.3.7
Add the following line to .bash_profile -
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
source ~/.bash_profile
rbenv global 2.3.7
ruby -v
bundle install
bundle exec fastlane bootstrap
open ProjectName.xcworkspace
【问题讨论】: