推送到Testflight时Azure DevOps for iOS超时

推送到Testflight时Azure DevOps for iOS超时,ios,azure-devops,testflight,fastlane,azure-devops-extensions,Ios,Azure Devops,Testflight,Fastlane,Azure Devops Extensions,在Azure DevOps中,我们有一个发布管道,可以使用以下扩展插件将iOS应用程序的.ipa推送到Testflight: 苹果最近强制使用App Store Connect API密钥 自从实现App Store Connect API密钥以来,我们现在面临超时错误(日志如下所示): 作业过程失败,出现以下fastlane错误: 2021-03-18T18:05:40.4539710Z###[错误]错误:进程“/usr/local/lib/ruby/gems/2.7.0/bin/fastl

在Azure DevOps中,我们有一个发布管道,可以使用以下扩展插件将iOS应用程序的.ipa推送到Testflight:

苹果最近强制使用App Store Connect API密钥

自从实现App Store Connect API密钥以来,我们现在面临超时错误(日志如下所示):

作业过程失败,出现以下fastlane错误:

2021-03-18T18:05:40.4539710Z###[错误]错误:进程“/usr/local/lib/ruby/gems/2.7.0/bin/fastlane”失败,退出代码为1

  • 构建被推送到Testflight
  • 未发布发行说明
  • 我在用户上具有应用程序管理器角色

  • 我遗漏了什么?

    我遗漏了Paulw11建议的API密钥上的App Manager角色

    使用此角色重新生成一个新的API密钥后,它就工作了


    注意:用户帐户上的应用程序管理器角色不足,如果您正在自动化发布部分(变更日志、发布说明等),它将不起作用。

    很可能您拥有开发人员访问权限的密钥,这就是为什么->
    无法设置更改日志:出于安全原因,此请求被禁止-正在使用的API密钥不允许此请求(FastlaneCore::Interface::FastlaneError)


    该密钥与具有相同角色的普通用户具有相同的访问级别。作为具有开发人员角色的用户,您不能设置changelog。请参阅-
    编辑应用商店详细信息

    错误令人困惑;它说是超时,但文本说是权限问题。我会查看分配给您的api密钥的权限。我发现这个线程:,看来将fastlane降级到2.116.1可以解决这个问题。
    .... 
    2021-03-18T18:03:19.8161190Z INFO [2021-03-18 18:03:19.81]: iTunes Transporter successfully finished its job
    2021-03-18T18:03:19.8162270Z DEBUG [2021-03-18 18:03:19.81]: [Transporter]: DBG-X: Returning 0
    2021-03-18T18:03:19.9485520Z INFO [2021-03-18 18:03:19.94]: -----------------------------------------------------
    2021-03-18T18:03:19.9486760Z INFO [2021-03-18 18:03:19.94]: Successfully uploaded package to App Store Connect. It might take a few minutes until it's visible online.
    2021-03-18T18:03:19.9487720Z INFO [2021-03-18 18:03:19.94]: -----------------------------------------------------
    2021-03-18T18:03:19.9516820Z INFO [2021-03-18 18:03:19.95]: Successfully uploaded the new binary to App Store Connect
    2021-03-18T18:03:19.9517800Z INFO [2021-03-18 18:03:19.95]: Creating authorization token for App Store Connect API
    2021-03-18T18:03:19.9551310Z INFO [2021-03-18 18:03:19.95]: If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option
    2021-03-18T18:03:19.9552840Z INFO [2021-03-18 18:03:19.95]: Note that if `skip_waiting_for_build_processing` is used but a `changelog` is supplied, this process will wait for the build to appear on AppStoreConnect, update the changelog and then skip the remaining of the processing steps.
    2021-03-18T18:03:19.9553980Z DEBUG [2021-03-18 18:03:19.95]: App Platform (ios)
    2021-03-18T18:03:20.5095270Z INFO [2021-03-18 18:03:20.50]: Waiting for processing on... app_id: 1484478996, app_version: 1.4.0, build_version: 20210318.1844, platform: IOS
    2021-03-18T18:03:20.8594870Z WARN [2021-03-18 18:03:20.85]: Read more information on why this build isn't showing up yet - https://github.com/fastlane/fastlane/issues/14997
    2021-03-18T18:03:20.8596300Z INFO [2021-03-18 18:03:20.85]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
    2021-03-18T18:03:51.2082280Z INFO [2021-03-18 18:03:51.20]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
    2021-03-18T18:04:21.6151090Z INFO [2021-03-18 18:04:21.61]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
    2021-03-18T18:04:51.9799690Z INFO [2021-03-18 18:04:51.97]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
    2021-03-18T18:05:25.6750520Z INFO [2021-03-18 18:05:25.67]: Waiting for App Store Connect to finish processing the new build (1.4.0 - 20210318.1844) for IOS
    2021-03-18T18:05:25.6753650Z WARN [2021-03-18 18:05:25.67]: Build did include information for app, build beta detail and pre release version
    2021-03-18T18:05:25.6755640Z WARN [2021-03-18 18:05:25.67]: Fetching a new build with all the information needed
    2021-03-18T18:05:27.0157640Z Timeout received: 'Spaceship::AccessForbiddenError', 'This request is forbidden for security reasons - The API key in use does not allow this request'. Retrying after 3 seconds (remaining: 4)...
    2021-03-18T18:05:30.3941310Z Timeout received: 'Spaceship::AccessForbiddenError', 'This request is forbidden for security reasons - The API key in use does not allow this request'. Retrying after 3 seconds (remaining: 3)...
    2021-03-18T18:05:33.6926250Z Timeout received: 'Spaceship::AccessForbiddenError', 'This request is forbidden for security reasons - The API key in use does not allow this request'. Retrying after 3 seconds (remaining: 2)...
    2021-03-18T18:05:37.1249810Z Timeout received: 'Spaceship::AccessForbiddenError', 'This request is forbidden for security reasons - The API key in use does not allow this request'. Retrying after 3 seconds (remaining: 1)...
    2021-03-18T18:05:40.4293300Z /Users/runner/.gem-cache/gems/fastlane-2.178.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!': [!] Could not set changelog: This request is forbidden for security reasons - The API key in use does not allow this request (FastlaneCore::Interface::FastlaneError)
    ....