0%

fastlane 安装

fastlane 安装

ruby 安装

  1. 默认安装
    yum install ruby

  2. 检查版本
    ruby --version
    默认为 2.0.0 版本,fastlane 安装要求 ruby 在 2.5 以上

  3. ruby 版本更新-rvm 安装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 添加阿里镜像
gem sources -a http://mirrors.aliyun.com/rubygems/

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

# 该步骤执行失败,需翻墙
#curl -sSL https://get.rvm.io | bash -s stable
curl http://static.foxhello.com/app/shell/rvm-installer.txt >> rvm-installer.sh

# docker安装which
yum install which

# 安装rvm
./rvm-installer.sh

# 更新环境变量
source /etc/profile.d/rvm.sh

# 检测
rvm -v

rvm list known

rvm install 2.7

ruby -v
  1. 安装 bundler
    gem install bundler

  2. 相关命令

1
2
3
4
5
6
7
8
9
10
# Create a ./Gemfile in the root directory of your project with the content
source "https://rubygems.org"

gem "fastlane"
# Run `bundle update` and add both the `./Gemfile` and the `./Gemfile.lock` to version control
# Every time you run fastlane, use `bundle exec fastlane` [lane]
# On your CI, add `bundle install` as your first build step
# To update fastlane, just run `bundle update` fastlane

fastlane init

参考

  1. fastlane github
  2. fastlane 官网
  3. fastlane 安装文档
  4. ruby 安装文档
  5. ruby 升级