如何使用Fastlane为模拟器构建iOS应用?

时间:2019-10-14 16:03:18

标签: ios jenkins simulator fastlane

出于自动化测试的目的,我正在尝试使用 fastlane job脚本通过 jenkins build_app simulator 构建iOS应用< / strong>。

我目前遇到的两件事是:

  1. 我不知道如何直接从构建命令中获取.app file
  2. 创建.ipa文件时,只需提取.app file即可得到.ipa,但是以某种方式.app不会在我的模拟器上打开(模拟器是 相应的一个)

我正在使用的车道如下->

lane :app_for_simulator do
    match(type: "development")
    build_app(
      scheme: "MyApp",
      export_method: "development",
      configuration: "Debug",
      destination: "platform=iOS Simulator,name=iPhone 11,OS=13.1",
      output_name: "MyApp.ipa"
    )
  end

有人遇到过类似的问题并设法解决了吗?

浏览了其他主题,但没有找到答案。 预先感谢

1 个答案:

答案 0 :(得分:0)

这是我们使用的:

<Header />