Reputation: 21
I am Newbee to AzureDevops, I am trying to setup the Azure CI/CD pipeline to gitlab.
I'll show you , how to setup the pipeline everything by showing images
Setting Xcode Config
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'.
Any Solutions..?
Upvotes: 0
Views: 59
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