title: Azure Devops macOS Pipeline fails on hosted with missing provisioning profile
body: <p>I am running a Azure DevOps Pipeline which generates an .ipa file. This runs on my local agent without any issues, but when I run it on a hosted macOS 10.15 machine, i'll get an error, that the provisioning profile is missing</p>
  <p><code>❌  error: No profiles for 'app.zookeeper.platypus' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'app.zookeeper.platypus'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner') </code></p>
  <pre><code>- task: InstallAppleProvisioningProfile@1
    displayName: 'Install an Apple provisioning profile'
    inputs:
      provProfileSecureFile: App.mobileprovision
  
  - task: InstallAppleCertificate@2
    displayName: 'Install an Apple certificate'
    inputs:
      certSecureFile: 'Certs.p12'
      certPwd: xxx
  
  - task: Xcode@5
    displayName: 'Xcode archive'
    inputs:
      actions: archive
      xcWorkspacePath: 'src/Apps/App/ios/Runner.xcworkspace'
      scheme: Runner
      packageApp: true
      archivePath: 'src/Apps/App/ios/Runner.xcarchive'
      exportPath: '$(build.artifactstagingdirectory)'
      signingOption: auto
  </code></pre>
  <p>Here's the output of the install provisioning profile task</p>
  <pre><code>Starting: Install an Apple provisioning profile
  ==============================================================================
  Task         : Install Apple provisioning profile
  Description  : Install an Apple provisioning profile required to build on a macOS agent machine
  Version      : 1.171.0
  Author       : Microsoft Corporation
  Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/install-apple-provisioning-profile
  ==============================================================================
  /usr/bin/security cms -D -i /Users/runner/work/_temp/platypus.mobileprovision
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
  &lt;plist version=&quot;1.0&quot;&gt;
  &lt;dict&gt;
      &lt;key&gt;AppIDName&lt;/key&gt;
      &lt;string&gt;Platypus identifier&lt;/string&gt;
      &lt;key&gt;ApplicationIdentifierPrefix&lt;/key&gt;
      &lt;array&gt;
      &lt;string&gt;UM3UVMPGY5&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;CreationDate&lt;/key&gt;
      &lt;date&gt;2020-07-31T14:08:38Z&lt;/date&gt;
      &lt;key&gt;Platform&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;iOS&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;IsXcodeManaged&lt;/key&gt;
      &lt;false/&gt;
      &lt;key&gt;DeveloperCertificates&lt;/key&gt;
      &lt;array&gt;
          &lt;data&gt;MIIF...&lt;/data&gt; &lt;- shortened for better reading
          &lt;data&gt;MIIF...&lt;/data&gt; &lt;- shortened for better reading
          &lt;data&gt;MIIF...&lt;/data&gt; &lt;- shortened for better reading
      &lt;/array&gt;
  
                                          
      &lt;key&gt;Entitlements&lt;/key&gt;
      &lt;dict&gt;
                  
                  &lt;key&gt;application-identifier&lt;/key&gt;
          &lt;string&gt;UM3UVMPGY5.app.zookeeper.platypus&lt;/string&gt;
                  &lt;key&gt;keychain-access-groups&lt;/key&gt;
          &lt;array&gt;
                  &lt;string&gt;UM3UVMPGY5.*&lt;/string&gt;
                  &lt;string&gt;com.apple.token&lt;/string&gt;
          &lt;/array&gt;
                  
                  &lt;key&gt;get-task-allow&lt;/key&gt;
          &lt;true/&gt;
                  
                  &lt;key&gt;com.apple.developer.team-identifier&lt;/key&gt;
          &lt;string&gt;UM3UVMPGY5&lt;/string&gt;
                  &lt;key&gt;com.apple.developer.authentication-services.autofill-credential-provider&lt;/key&gt;
          &lt;true/&gt;
  
      &lt;/dict&gt;
      &lt;key&gt;ExpirationDate&lt;/key&gt;
      &lt;date&gt;2021-07-31T14:08:38Z&lt;/date&gt;
      &lt;key&gt;Name&lt;/key&gt;
      &lt;string&gt;platypus&lt;/string&gt;
      &lt;key&gt;ProvisionedDevices&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;00008030-0011193A11D8802E&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;TeamIdentifier&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;UM3UVMPGY5&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;TeamName&lt;/key&gt;
      &lt;string&gt;Daniel Martin&lt;/string&gt;
      &lt;key&gt;TimeToLive&lt;/key&gt;
      &lt;integer&gt;365&lt;/integer&gt;
      &lt;key&gt;UUID&lt;/key&gt;
      &lt;string&gt;19e4f1a2-a4fd-42f6-ac17-b8bc864fa1d7&lt;/string&gt;
      &lt;key&gt;Version&lt;/key&gt;
      &lt;integer&gt;1&lt;/integer&gt;
  &lt;/dict&gt;
  /usr/libexec/PlistBuddy -c Print UUID _xcodetasktmp.plist
  19e4f1a2-a4fd-42f6-ac17-b8bc864fa1d7
  /usr/libexec/PlistBuddy -c Print Name _xcodetasktmp.plist
  platypus
  /bin/rm -f _xcodetasktmp.plist
  /bin/cp -f /Users/runner/work/_temp/platypus.mobileprovision /Users/runner/Library/MobileDevice/Provisioning Profiles/19e4f1a2-a4fd-42f6-ac17-b8bc864fa1d7.mobileprovision
  Finishing: Install an Apple provisioning profile
  </code></pre>
  <p>And the failing XCOde archive task:</p>
  <pre><code>Starting: Xcode archive
  ==============================================================================
  Task         : Xcode
  Description  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
  Version      : 5.170.2
  Author       : Microsoft Corporation
  Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/xcode
  ==============================================================================
  /usr/bin/xcodebuild -version
  Xcode 11.3.1
  Build version 11C505
  /usr/bin/xcodebuild -configuration $(Configuration) -workspace /Users/runner/work/1/s/src/Apps/platypus_app/ios/Runner.xcworkspace -scheme Runner archive CODE_SIGN_STYLE=Automatic | /usr/local/lib/ruby/gems/2.6.0/bin/xcpretty -r junit --no-color
  
  ❌  error: No profiles for 'app.zookeeper.platypus' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'app.zookeeper.platypus'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
  
  
  ** ARCHIVE FAILED **
  
  ##[error]Error: /usr/bin/xcodebuild failed with return code: 65
  Finishing: Xcode archive
  </code></pre>
  <p>I am a beginner with Apple certificates, so I think I am missing something here
  Thanks for any help!</p>
  <h1>EDIT</h1>
  <p>After setting</p>
  <pre><code>signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
  provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
  </code></pre>
  <p>I'll get a bunch of new errors coming up.</p>
  <pre><code>❌  error: image_picker does not support provisioning profiles. image_picker does not support provisioning profiles, but provisioning profile platypus has been manually specified. Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor. (in target 'image_picker' from project 'Pods')
  
  ❌  error: flutter_secure_storage does not support provisioning profiles. flutter_secure_storage does not support provisioning profiles, but provisioning profile platypus has been manually specified. Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor. (in target 'flutter_secure_storage' from project 'Pods')
  
  ❌  error: MTBBarcodeScanner does not support provisioning profiles. MTBBarcodeScanner does not support provisioning profiles, but provisioning profile platypus has been manually specified. Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor. (in target 'MTBBarcodeScanner' from project 'Pods')
  
  ❌  error: sqflite does not support provisioning profiles. sqflite does not support provisioning profiles, but provisioning profile platypus has been manually specified. Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor. (in target 'sqflite' from project 'Pods')
  
  ❌  error: Pods-Runner does not support provisioning profiles. Pods-Runner does not support provisioning profiles, but provisioning profile platypus has been manually specified. Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor. (in target 'Pods-Runner' from project 'Pods')
  
  ❌  error: Provisioning profile &quot;platypus&quot; doesn't include signing certificate &quot;iPhone Distribution: Daniel Martin (UM3UVMPGY5)&quot;. (in target 'Runner' from project 'Runner')
  
  ❌  error: path_provider does not support provisioning profiles. path_provider does not support provisioning profiles, but provisioning profile platypus has been manually specified. Set the provisioning profile value to &quot;Automatic&quot; in the build settings editor. (in target 'path_provider' from project 'Pods')
  </code></pre>
  <p>These are all packages I included into my flutter application.</p>