我用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:
请参阅以下日志
5条答案
按热度按时间evrscar21#
我也吃了同样的。
GitHub的这条评论对我很有帮助。
将env变量添加到您的部署中(或直接添加本地计算机提供程序或快速文件)使用DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS,我们可以添加“缺少的”-asc_🥇变量。
ENV[“DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS”]=“-ASC_PROVIDER YourShortName”刚刚部署,对于那些迫不及待的人来说,它很管用。
djmepvbi2#
请在下面的代码行中添加
itc_provider
和apple_id
。如果你在多个App Store Connect团队中,Deliver需要一个提供商的短名称来知道将你的二进制文件上传到哪里。Deliver将尝试使用所选团队的长名称来检测提供商短名称。要使用显式值覆盖检测到的值,请使用ITC_PROVIDER选项。
x0fgdtte3#
对于那些在Azure DevOps的
AppStoreRelease
任务中遭受这一痛苦的人。使用@user20291554解决方案可以修复如下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,您可以在上面的页面上获得
bq9c1y665#
这就是我如何解决它的!