chnote
  • Initial page
  • GitGuide
    • Git使用进阶
    • Git使用指南
  • Mac开发环境配置
    • Carthage
    • Generamba
    • Xcode
    • Fastlane
    • Terminal Tools
    • Cocoapods
  • ShellUsage
    • Shell简单使用
    • 常用终端操作及命令
    • 常用Shell脚本
  • GitBook
    • GitBook教程
    • GitBook发布及访问
  • Apple设备使用
    • iPhone使用
    • Mac使用
Powered by GitBook
On this page
  • 一、安装
  • 二、使用

Was this helpful?

  1. Mac开发环境配置

Fastlane

一、安装

  1. 先安装 Xcode 的 Command Line Tools:xcode-select --install

  2. 安装 Fastlane:sudo gem install fastlane

  3. 更新 Fastlane:sudo gem update fastlane

二、使用

  1. cd 到项目目录

  2. 初始化 fastLane:fastlane init

  3. 安装蒲公英插件:fastlane add_plugin pgyer

  4. 安装版本设置插件:fastlane add_plugin versioning

  5. 编辑 Fastfile 文件,编写 Fastlane Action

  6. cocoapods管理包的话:需要在 Gemfile 文件中添加 gem "cocoapods"

  7. 执行发布命令:

# Xcode clean 操作
xcodebuild clean -scheme XXX;
# 执行 fastlane 发布
bundle exec fastlane release_ipa_toPgyer
PreviousXcodeNextTerminal Tools

Last updated 6 years ago

Was this helpful?