fastlane iOS 自动化打包

栏目: 服务器 · 发布时间: 7年前

内容简介:1 cd 项目根目录2 选择自定义 3 配置文件4 执行 终端切换至项目下的fastlane

1 cd 项目根目录

fastlane init
复制代码

2 选择自定义 3 配置文件

# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)


#targets = ['ElbC', 'ElbT', 'ElbF']
targets = ['ElbALL', 'ElbC', 'ElbC online', 'ElbF', 'ElbF online', 'ElbT', 'ElbT online']


ALL_DIR = Time.now.strftime("%Y-%m-%d %H:%M:%S")


platform :ios do
  

desc "ElbT 测试版本"
  lane :ElbT do 
    gym(scheme:"ElbT",
        export_method:"enterprise",
        output_directory:"~/Desktop/App/ElbT/",#文件路径
	output_name:"ElbT--#{ALL_DIR}.ipa"

         )
    end
lane :all do
targets.each do |t|
    gym(scheme:t,
        export_method:"enterprise",
        output_directory:"~/Desktop/App/All/#{ALL_DIR}/",#文件路径
	output_name:"#{t}--#{ALL_DIR}.ipa"
         )
end
end
end

复制代码

4 执行 终端切换至项目下的fastlane

fastlane iOS 自动化打包

4.1 文件介绍 Appfile内部是个人开发者账号的配置 Fastfile 定义的是一个个的lane,执行不同的打包操作

操作实例 单个打包 ElbT fastlane ElbT

一键打包所有 fastlane all

5 打包过程

fastlane iOS 自动化打包
fastlane iOS 自动化打包
fastlane iOS 自动化打包

6 结束

fastlane iOS 自动化打包

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

How to Build a Billion Dollar App

How to Build a Billion Dollar App

George Berkowski / Little, Brown Book Group / 2015-4-1 / USD 24.95

Apps have changed the way we communicate, shop, play, interact and travel and their phenomenal popularity has presented possibly the biggest business opportunity in history. In How to Build a Billi......一起来看看 《How to Build a Billion Dollar App》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具