如何解决 Transporter 错误 "The provisioning profile included in the bundle is invalid. [Missing code-signing certificate]"?

How do I resolve the Transporter error "The provisioning profile included in the bundle is invalid. [Missing code-signing certificate]"?

我已成功构建、签名和存档我的应​​用程序!但是,当我尝试将它发送到 App Store Connect 时(我尝试使用 Transporter 和 Fastlane),我收到此错误:

ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.myapp [Payload/My App.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."

我确实在使用分发配置文件,并且我在进行构建的机器上有代码签名证书。我试过从所有机器上删除它们,然后从 Apple Developer 重新下载它们,但这似乎并没有解决问题。

我也试过删除并重新创建配置文件,但这似乎并没有影响这个问题。

我发现这是我不知道的强制 Bitrise 配置更改,quietly announced on their forum

tl;Bitrise 博士更改了他们的 xcodebuild 步骤的配置,因此 ExportMethod 设置为 development,而这需要将其设置为 app-store。我之前手动将其设置为 app-store,但在升级过程中,升级过程将其取消设置回 development。将其设置回 app-store 解决了我的问题。