【问题标题】:App Center Distribute IOS app using Azure Pipelines: Resource not foundApp Center 使用 Azure Pipelines 分发 IOS 应用程序:找不到资源
【发布时间】:2020-10-15 10:49:43
【问题描述】:

我目前正在使用 Azure Pipelines 使用 App Center 分发应用程序。

构建和创建certificate.p12 和provision profile 工作正常,但在应用中心分发任务我得到了

Starting: App Center
==============================================================================
Task         : App Center distribute
Description  : Distribute app builds to testers and users via Visual Studio App Center
Version      : 3.173.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/app-center-distribute
==============================================================================
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:2022) Warning: Use Cipheriv for counter mode of aes-256-ctr
##[error]"{\"message\":\"Resource not found: /v0.1/apps/https://appcenter.ms/users/[username]/apps/[appname]/uploads/releases. Correlation ID: bbc...\",\"statusCode\":404,\"code\":\"Not Found\"}"
http response code: 404
Finishing: App Center

YAML AppCenter 分发作业

- task: AppCenterDistribute@3
  displayName: 'App Center'
  inputs:
     serverEndpoint: Test
     appSlug: 'https://appcenter.ms/users/[username]/apps/TestApp'
     appFile: '$(build.artifactstagingdirectory)/**/*.ipa'
     #symbolsIncludeParentDirectory: false
     releaseNotesInput: 'test 123'
    #isSilent: false

这是我的连接配置。

【问题讨论】:

    标签: azure-devops visual-studio-app-center


    【解决方案1】:

    您可以尝试将appSlughttps://appcenter.ms/users/[username]/apps/TestApp 编辑为[username]/TestApp

    根据以下文档:

    https://docs.microsoft.com/en-us/appcenter/distribution/vsts-deploy

    在 Azure DevOps 和应用程序之间创建连接之后 中心,Azure DevOps 需要知道你要分发哪个应用 签名的构建。您可以通过转到您的应用程序 slug App Center上的项目,并根据 https://appcenter.ms/users/{username}/apps/{app_identifier}。为了 例如,应用程序 slug https://appcenter.ms/users/vigimm/apps/SkyTubevigimm/Skytube

    另外,App Center Distribute task 中参数的描述表明:

    【讨论】:

      【解决方案2】:

      另外,请确保您使用的是此任务的最新版本。我遇到的 404 错误是由于此任务的底层 API 发生了变化。

      我的仍在尝试使用/v0.1/apps/{user/org}/{appname}/release_uploads

      较新的版本使用正确的/v0.1/apps/{user/org}/{appname}/releases

      根据Microsoft

      ...确保您使用的是 3.173.0 或更高版本。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-01-21
        • 2011-07-19
        • 1970-01-01
        相关资源
        最近更新 更多