title: Azure Devops Pipeline Integration for iOS
body: <p>I'm trying to continuously deliver my iOS application for QA testing. For that I first need to generate an ipa file. Unfortunately, I don't see it being generated in the 'XCode' task. I do see that the archive was created successfully and I do have the checkbox to generate the package. Below is my current yml file.</p>
  
  <pre><code># Xcode
  
  # Build, test, and archive an Xcode workspace on macOS.
  # Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
  # https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
  
  trigger:
  - Development
  
  pool: 'OSX'
  
  steps:
  
  - task: InstallAppleCertificate@2
    inputs:
      certSecureFile: 'MyAppDistributionCert-20200305.320pm.p12'
      certPwd: '$(MyAppiOSDistributionCert)'
      keychain: 'temp'
  
  - task: InstallAppleProvisioningProfile@1
    inputs:
      provisioningProfileLocation: 'secureFiles'
      provProfileSecureFile: 'Bot_MyApp_Debug.mobileprovision'
  
  - task: Xcode@5
    inputs:
      actions: 'clean build test archive'
      scheme: 'MyApp'
      sdk: 'iphonesimulator'
      configuration: 'Debug'
      xcWorkspacePath: '**/MyApp.xcworkspace'
      xcodeVersion: 'default' # Options: 8, 9, 10, default, specifyPath
      packageApp: true
      destinationPlatformOption: 'iOS'
      destinationSimulators: 'iPhone 8 Plus'
      signingOption: default
      provisioningProfileName: 'Bot_MyApp_Debug.mobileprovision'
      exportMethod: 'Development'
      exportPath: '$(system.defaultworkingdirectory)'
  
  - task: CopyFiles@2
    inputs:
      contents: '**/*.ipa'
      targetFolder: '$(build.artifactStagingDirectory)'
  - task: PublishBuildArtifacts@1
  
  - task: PublishBuildArtifacts@1
    displayName: 'Publish Artifact: drop'
    inputs:
      PathtoPublish: '$(build.artifactstagingdirectory)'
    condition: succeededOrFailed()
  </code></pre>