App Center Распространяет приложение IOS с помощью Azure Pipelines: ресурс не найден

#azure #azure-devops #devops #azure-devops-rest-api #visual-studio-app-center

#azure-devops #visual-studio-app-center

Вопрос:

в настоящее время я работаю над Azure Pipelines для распространения приложения с помощью App Center.

сборка и создание certificate.p12 и provsion profile работают нормально, но в задаче 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://learn.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 appcenterd distribute

 - 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
  

и вот моя конфигурация подключения.

введите описание изображения здесь

Ответ №1:

Вы можете попытаться отредактировать appSlug от https://appcenter.ms/users/[username]/apps/TestApp до [username]/TestApp .

В соответствии со следующей документацией:

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

После создания соединения между Azure DevOps и App Center Azure DevOps необходимо знать, в какое приложение вы хотите распространить подписанную сборку. Вы можете найти приложение, перейдя к своему проекту в App Center и извлекая его на основе https://appcenter.ms/users/{username}/apps/{app_identifier} . Например, пуля приложения для https://appcenter.ms/users/vigimm/apps/SkyTube is vigimm/Skytube .

введите описание изображения здесь

Кроме того, описание аргумента в задаче App Center Distribute указывает:

введите описание изображения здесь

Ответ №2:

Также убедитесь, что вы используете последнюю версию этой задачи. Ошибка 404, с которой я столкнулся, была вызвана изменением базового API для этой задачи.

Мой все еще пытался использовать /v0.1/apps/{user/org}/{appname}/release_uploads .

В более новой версии используется правильный /v0.1/apps/{user/org}/{appname}/releases .

Согласно Microsoft:

… убедитесь, что вы используете версию 3.173.0 или новее.

введите описание изображения здесь