fastlane,你能在你的 fastfile 中执行循环或迭代吗?

Fastlane, can you perform loops or iterations within your fastfile?

你能在 fastlane fastfile 或 lanes 中执行循环或迭代(通过设备和语言)吗?

我需要在每次模拟器启动/结束之前和之后做一些事情。

是的,您可以在快车道中使用任何 Ruby 命令。

例如:

lane :print_images do
   images = Dir[File.dirname(some_search_path) + '/*.png']
   images.each do |image|
       UI.message("found image at: #{image}")
   end
end