1//获取key
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
2//下载
curl -sSL http://get.rvm.io | bash -s stable
3//设置
source /etc/profile.d/rvm.sh
4//查看版本
rvm -v
5//安装
rvm install 2.5
6//安装fastlane
gem install fastlane -NV
7//在下建立文件夹名字随意
8//进入建立的文件夹 执行 fastlane -init
9//打开建立文件夹下面 Gemfile 加一行 gem "pry"
10//绑定设备 cookie一个月失效 需要一个月重新登陆一次
fastlane Spaceship
11//进入建立文件夹下 替换 Appfile 文件
ENV["FASTLANE_PASSWORD"]="Mzmu2016#" # 密码
default_platform(:ios)
platform :ios do
desc "Description of what the lane does"
lane :custom_lane do
# add actions here: https://docs.fastlane.tools/actions
end
end
lane:register_devices_run do
register_devices(
devices:{
"peng 1"=>"43cbc02fd0679825f82e1f0c1db9c1b8a101ba52"
}
)
end
12增加定时任务运行命令 fastlane register_devices_run