Search code examples
iosazureazure-devopsazure-pipelinesprovisioning-profile

Azure devops issue: "The pipeline is not valid. Job mac_agent: Step InstallAppleProvisioningProfile input provProfileSecureFile references secure file


i have this task in azure pipeline :

 - task: InstallAppleProvisioningProfile@1
    displayName: 'Install an Apple provisioning profile'
    inputs:
     provisioningProfileLocation: 'sourceRepository'
     provProfileSecureFile: '$(System.ArtifactsDirectory)/ios_artifacts/InHouse_com.xxxx.xxxxx.mobileprovision'

the file do exist in this path, but when executing the pipeline I'm getting this error/warning : enter image description here

when i manually press the button its continue,
how can I avoid this?


Solution

  • We should authorize the resource before we use it, we need click the button Authorize resources to authorize, then we can use the file in the pipeline.

    Or open project settings->Settings->check the option Limit job authorization scope to current project for non-release pipelines and Limit job authorization scope to referenced Azure DevOps repositories.

    Please refer this doc for more details.

    enter image description here