Venkat Prabhu
Venkat Prabhu

Reputation: 21

Not creating .IPA from Azure Devops to publish to Apple Appstore

I am Newbee to AzureDevops, I am trying to setup the Azure CI/CD pipeline to gitlab.

  1. Setup is done
  2. Pipeline & Build also Succeeded.
  3. But .IPA is not generated ❌

I'll show you , how to setup the pipeline everything by showing images

Setting Xcode Config Chosing Xcode build Xcode Config here Setting CopyFiles Setting CopyFiles

After run this pipeline Build is succeded but .ipa is not generated

I got this error ❌

##[warning]Directory '/Users/runner/work/1/a' is empty. Nothing will be added to build artifact 'drop'.

Here the YAML YAML

Any Solutions..?

Upvotes: 0

Views: 59

Answers (1)

Alvin Zhao - MSFT
Alvin Zhao - MSFT

Reputation: 6037

You haven't share you pipeline definition, however, based on the error message, it appeared that your task to publish pipeline artifacts from $(Build.ArtifactStagingDirectory) (/Users/runner/work/1/a) failed because that folder was empty.

Usually, your package .ipa file was generated inside the $(System.DefaultWorkingDirectory) during the build. For this, you may add a CopyFiles@2 task to copy the .ipa package file(s) from $(System.DefaultWorkingDirectory) to $(Build.ArtifactStagingDirectory) before publishing.

Additionally, I recommend checking the pipeline logs to confirm the exact location of your .ipa file.

Here is a sample YAML pipeline definition for your reference to help modify your pipeline.

- script: |
    brew install tree
    tree $(System.DefaultWorkingDirectory)

- task: CopyFiles@2
  inputs:
    SourceFolder: '$(System.DefaultWorkingDirectory)'
    Contents: '**/*.ipa'
    TargetFolder: '$(Build.ArtifactStagingDirectory)'

- publish: $(Build.ArtifactStagingDirectory)
  artifact: drop

Upvotes: 0

Related Questions