如何使用 fastlane Fastfile 通道自动化 xcode 清理过程

Posted

技术标签:

【中文标题】如何使用 fastlane Fastfile 通道自动化 xcode 清理过程【英文标题】:How to automate xcode clean process using fastlane Fastfile lane 【发布时间】:2017-11-06 06:43:32 【问题描述】:

我正在寻找一种使用 fastlate 自动化 xcode 清理过程的方法。

我想要实现的目标:

    清除派生数据文件夹 清理构建文件夹 干净 构建

到目前为止,我自动化了派生数据文件夹

lane :clean do
  clear_derived_data
end

【问题讨论】:

【参考方案1】:

你已经达到了 1,2 和 3,但是对于 4,你需要使用 Gym 它很容易使用,按照他的指南 https://docs.fastlane.tools/actions/gym/

lane :cleanAndBuild do
  clear_derived_data
  gym( my_params )
end

【讨论】:

以上是关于如何使用 fastlane Fastfile 通道自动化 xcode 清理过程的主要内容,如果未能解决你的问题,请参考以下文章

如何通过 fastlane 在 Firebase 测试实验室中运行 XCUItest?

在 fastlane 快照中使用两组设备?

fastlane match 不能再创建配置文件

使用 fastlane 根据方案/目标自动从 plist 获取包标识符

Fastlane 一键打包/发布APP - 使用记录及踩坑

Fastlane 一键打包/发布APP - 使用记录及踩坑