快速通道失败并出现错误“无法获取内容提供商公共ID,请使用-asc_Provider选项指定提供商的短名称,”

oxf4rvwz  于 2022-10-23  发布在  Swift
关注(0)|答案(5)|浏览(521)

我用Fastlane创建了一个iOS试飞版本,我收到了这个奇怪的错误,不确定为什么,因为它昨天运行得很好,现在Fastlane的配置没有任何变化,它在将版本上传到苹果应用商店时给了我一个错误。
错误的措辞如下

[21:50:01]: Transporter transfer failed.
[21:50:01]: 
[21:50:01]: Cannot obtain the content provider public id. Please specify a provider short name using the -asc_provider option.

[21:50:02]: Cannot obtain the content provider public id. Please specify a provider short name using the -asc_provider option.
Return status of iTunes Transporter was 1: Cannot obtain the content provider public id. Please specify a provider short name using the -asc_provider option.
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.

[21:50:02]: Error uploading ipa file: 

[21:50:02]: fastlane finished with errors

[!] Error uploading ipa file:

请参阅以下日志

evrscar2

evrscar21#

我也吃了同样的。
GitHub的这条评论对我很有帮助。
将env变量添加到您的部署中(或直接添加本地计算机提供程序或快速文件)使用DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS,我们可以添加“缺少的”-asc_🥇变量。
ENV[“DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS”]=“-ASC_PROVIDER YourShortName”刚刚部署,对于那些迫不及待的人来说,它很管用。

djmepvbi

djmepvbi2#

请在下面的代码行中添加itc_providerapple_id

upload_to_testflight(
    skip_waiting_for_build_processing: true,
    apple_id: "APPLE_ID",
    itc_provider:"ID" #example: W4A0P2BYMN
)

如果你在多个App Store Connect团队中,Deliver需要一个提供商的短名称来知道将你的二进制文件上传到哪里。Deliver将尝试使用所选团队的长名称来检测提供商短名称。要使用显式值覆盖检测到的值,请使用ITC_PROVIDER选项。

x0fgdtte

x0fgdtte3#

对于那些在Azure DevOps的AppStoreRelease任务中遭受这一痛苦的人。使用@user20291554解决方案可以修复如下

- job: ios
    pool:
      vmImage: macOS-latest
    variables:
      DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS: "-asc_provider <your team ID or short name if different>"
    steps:
      ...
      - task: AppStoreRelease@1
        inputs:
      ...
wz8daaqr

wz8daaqr4#

我正在使用fastlane deliver上传我的应用程序
我的解决方案是:为命令fastlane deliver添加新的标记/标志例如:fastlane deliver --username xxx@xxx.com...
添加的新标签是--itc-provider my_team_id
您可以在此处找到您的团队ID:page
因此,末尾的命令是:fastlane deliver --verbose --ipa xxx --username xxx --app_identifier xxx --itc_provider team_id
Xxx=>对应于您的项目Team_id=>对应于团队ID,您可以在上面的页面上获得

bq9c1y66

bq9c1y665#

这就是我如何解决它的!

deliver(
        app_identifier: '{{YOUR_APP_ID}}',
        submit_for_review: false,
        skip_screenshots: true,
        force: true,
        itc_provider: "{{YOUR_TEAM_ID}}" // <- added!
      )

相关问题