How to AutoIncrement version numbers for Ios Builds

#1

Hi, I have a workflow which generates an IPA and uploads to s3 and hockey App. Currently, it has fixed Xcode version.

I would like to have an autoincrement for my ios builds and assign that incremented variable value to the s3.

How can I achieve this objective?

0 Likes

#2

Hi!

You can use the Set Xcode Project Build Number step to change the project’s build number. You need to add this step before the “Xcode Archive & Export for iOS” step something like this:
20

Here is a guide for it:
https://devcenter.bitrise.io/builds/build-numbering-and-app-versioning/#setting-the-cfbundleversion-and-cfbundleshortversionstring-of-an-ios-app

0 Likes

#3

Will it autoincrement? or give fixed value every time workflow runs?

0 Likes

#4

Yes, it will increment automatically by the $BITRISE_BUILD_NUMBER.

So if your build number is 14, then your project version will be like: 1.3.14
And in your next build your project version will be: 1.3.15
And so on.

0 Likes

closed #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes