1

Is there a way to change the build name in AppStoreRelease@1 task? I couldn't find a way to increment it nor set a value. This is the task I've written in azure pipelines,

- task: AppStoreRelease@1
    displayName: 'Publish to the App Store TestFlight track'
    inputs:
      serviceEndpoint: 'Testflight upload'
      appIdentifier: 'com.sample.org'
      ipaPath: '$(build.artifactstagingdirectory)/**/*.ipa'
      releaseTrack: 'TestFlight'
      appType: 'iOS'
      shouldSkipWaitingForProcessing: true
      shouldSkipSubmission: true

Is there any attribute where I can set the build number? Thanks in advance!

SVG
  • 809
  • 6
  • 21

2 Answers2

2

I added this to the yaml just before the Xcode@5 task:

- task: ios-bundle-version@1
  inputs:
    sourcePath: 'Selfwealth/Info.plist'
    versionCodeOption: 'buildid'
    versionCode: '$(Build.BuildId)'
    versionCodeOffset: '1'
    versionName: 

This results in a series of builds that have version #s like:

1.0 (10738)
1.0 (10744)
1.0 (10805)
etc.

This is fine for us. Devs can tell QA which build to use. Which is our main need.

David Reich
  • 709
  • 6
  • 14
  • Hi have you been experiencing a strange error when uploading the ipa to the testflight from azure pipelines. Related to https://stackoverflow.com/questions/74129232/an-exception-has-occurred-issuerid-is-required – SVG Oct 19 '22 at 17:01
  • And of course as soon as we upgrade to Xcode 14 this breaks. – David Reich Dec 15 '22 at 05:10
1

It takes the build version we set using ios-bundle-version@1 task. So it will publish the build in testflight with the same version code.

SVG
  • 809
  • 6
  • 21
  • How do we set up that task? And what do we need to do to prepare the Xcode project file(s)? – David Reich Oct 11 '22 at 10:50
  • @DavidReich which task do you want to know? Do you need to know the entire task list required for the test flight publication? – SVG Oct 11 '22 at 18:34
  • It would be nice to have an example of the ios-bundle-version task's parameters as they would appear in YAML. And what keys need to be in the plist file. I'm using an Xcode 13 compatible project, so some keys are already in the project file, but Azure can't find them? – David Reich Oct 12 '22 at 00:18
  • Hi @DavidReich, Actually I removed that task. If you use that task it will automatically increment your build id, but, it has some side effects specially it sets the build number of the pipeline in the info.plist. – SVG Oct 14 '22 at 10:42