TestFlight 构建显示在 "Activity" 选项卡下,但在 "TestFlight" 选项卡下缺失

TestFlight build shows up under "Activity" tab but is missing under "TestFlight" tab

我们一直在尝试自动化我们的构建和部署过程。 我们正在使用 Fastlane Gym 实用程序创建 ad-hoc 版本。 这是健身房文件:

scheme "NP"
xcargs "PROVISIONING_PROFILE_SPECIFIER='our_adHoc_profile'"
output_directory "../"
export_options(
method: "ad-hoc",
)

我们以这种方式创建的 IPA 已使用 TestFairy 进行分发和测试,因此我们知道它们没问题。

我们一直在尝试不同的方式将这些构建上传到 TestFlight。我们仅将 TestFlight 用于内部测试。我们不需要外部/Beta 测试。

一种方法是简单地做:

fastlane pilot upload -u our@iTunesAccount

第二种方法是将 pilot 实用程序与以下 FastFile 结合使用:

lane :uploadTestFlight do
pilot(
skip_submission: false,
distribute_external: false
)
end

第三种方法是使用 Nomad 客户端实用程序:

ipa distribute:itunesconnect -a our@iTunesAccount -p [password] -i [app id] --upload

三种方法的结果都是一样的: 该构建显示在“Activity”选项卡下,但在“TestFlight”选项卡下丢失。也就是说,我们在标题为“以下版本可用于测试”的部分中看不到它以及以前的版本。

使用 Pilot 时,上传完成后我们会看到以下输出:

Waiting for iTunes Connect to finish processing the new build (5.7.0 - 5.7.0.43)

Waiting for iTunes Connect to finish processing the new build (5.7.0 - 5.7.0.43)

Build doesn't show up in the build list any more, waiting for it to appear again

有人知道为什么会这样吗?

已找到解决方案。可以使用以下命令自动执行 TestFlight:

fastlane gym
fastlane deliver --skip_screenshots --skip_metadata --skip_app_version_update

健身房文件是:

scheme "[scheme name]"
xcargs "PROVISIONING_PROFILE_SPECIFIER='[Appstore profile name]'"
export_options(
  method: "app-store",
  uploadBitcode: true,
  uploadSymbols: true,
  stripSwiftSymbols: true,
  provisioningProfiles: {"[bundle name]" => "[Appstore profile name]"}
)

这会将构建上传到 AppStore,处理完成后,会自动发送 TestFlight。