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 自动化打包

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

查看所有标签

猜你喜欢:

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

TensorFlow:实战Google深度学习框架(第2版)

TensorFlow:实战Google深度学习框架(第2版)

顾思宇、梁博文、郑泽宇 / 电子工业出版社 / 2018-2-1 / 89

TensorFlow是谷歌2015年开源的主流深度学习框架,目前已得到广泛应用。《TensorFlow:实战Google深度学习框架(第2版)》为TensorFlow入门参考书,旨在帮助读者以快速、有效的方式上手TensorFlow和深度学习。书中省略了烦琐的数学模型推导,从实际应用问题出发,通过具体的TensorFlow示例介绍如何使用深度学习解决实际问题。书中包含深度学习的入门知识和大量实践经......一起来看看 《TensorFlow:实战Google深度学习框架(第2版)》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具