App Center 使用 Azure Pipelines 分发 IOS 应用程序:找不到资源
App Center Distribute IOS app using Azure Pipelines: Resource not found
我目前正在使用 Azure Pipelines 使用 App Center 分发应用程序。
构建并创建 certificate.p12 和 provsion 配置文件工作正常,但在 App Center Distribute 任务中我得到了
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 AppCenterDistribute 作业
- 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
这是我的连接配置。
您可以尝试将 appSlug
从 https://appcenter.ms/users/[username]/apps/TestApp
编辑为 [username]/TestApp
。
根据以下文档:
https://docs.microsoft.com/en-us/appcenter/distribution/vsts-deploy
After you've created the connection between Azure DevOps and App
Center, Azure DevOps needs to know which app you want to distribute
the signed build to. You can find the app slug by going to your
project on App Center, and extracting it based on
https://appcenter.ms/users/{username}/apps/{app_identifier}
. For
example, the app slug for
https://appcenter.ms/users/vigimm/apps/SkyTube
is vigimm/Skytube
.
另外,App Center Distribute task中参数的描述表明:
另外请确保您使用的是此任务的最新版本。我遇到的 404 错误是由于此任务的基础 API 发生变化。
我的还在尝试使用 /v0.1/apps/{user/org}/{appname}/release_uploads
。
较新版本使用正确的 /v0.1/apps/{user/org}/{appname}/releases
。
根据Microsoft:
... ensure that you are using the 3.173.0 version or newer.
我目前正在使用 Azure Pipelines 使用 App Center 分发应用程序。
构建并创建 certificate.p12 和 provsion 配置文件工作正常,但在 App Center Distribute 任务中我得到了
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 AppCenterDistribute 作业
- 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
这是我的连接配置。
您可以尝试将 appSlug
从 https://appcenter.ms/users/[username]/apps/TestApp
编辑为 [username]/TestApp
。
根据以下文档:
https://docs.microsoft.com/en-us/appcenter/distribution/vsts-deploy
After you've created the connection between Azure DevOps and App Center, Azure DevOps needs to know which app you want to distribute the signed build to. You can find the app slug by going to your project on App Center, and extracting it based on
https://appcenter.ms/users/{username}/apps/{app_identifier}
. For example, the app slug forhttps://appcenter.ms/users/vigimm/apps/SkyTube
isvigimm/Skytube
.
另外,App Center Distribute task中参数的描述表明:
另外请确保您使用的是此任务的最新版本。我遇到的 404 错误是由于此任务的基础 API 发生变化。
我的还在尝试使用 /v0.1/apps/{user/org}/{appname}/release_uploads
。
较新版本使用正确的 /v0.1/apps/{user/org}/{appname}/releases
。
根据Microsoft:
... ensure that you are using the 3.173.0 version or newer.