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

How to automate xcode clean process using fastlane Fastfile lane

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

我希望实现的目标:

  1. 清除派生数据文件夹
  2. 清理构建文件夹
  3. 清洁
  4. 建造

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

lane :clean do
  clear_derived_data
end

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

lane :cleanAndBuild do
  clear_derived_data
  gym( my_params )
end