Fastlane
一、安装
先安装 Xcode 的 Command Line Tools:
xcode-select --install安装 Fastlane:
sudo gem install fastlane更新 Fastlane:
sudo gem update fastlane
二、使用
cd 到项目目录
初始化 fastLane:
fastlane init安装蒲公英插件:
fastlane add_plugin pgyer安装版本设置插件:
fastlane add_plugin versioning编辑 Fastfile 文件,编写 Fastlane Action
cocoapods管理包的话:需要在
Gemfile文件中添加gem "cocoapods"执行发布命令:
# Xcode clean 操作
xcodebuild clean -scheme XXX;
# 执行 fastlane 发布
bundle exec fastlane release_ipa_toPgyerLast updated
Was this helpful?