Versioning Question

I created a build and in the info.plist "Bundle version string (short)" is set to "$(MARKETING_VERSION)".

In the project settings the marketing version is set 5.0 and this shows in Testfight.

When I submitted the app for review I set the app store version number to 3.3. I know the app will appear in the appstore as v3.3.

Before I release this app I need to know: What number will be returned by "infoDictionary?["CFBundleShortVersionString"]"? 5.0 or 3.3?

Answered by Claude31 in 832161022

You have defined, in the Targets, in Identity section, a version number and a build number (which should appear during archiving). Is it 5.0 ?

 If so,

What number will be returned by "infoDictionary?["CFBundleShortVersionString"]"?

it should return 5.0.

But, why having 2 different version numbers ? Is it a mistake or on purpose ?

Accepted Answer

You have defined, in the Targets, in Identity section, a version number and a build number (which should appear during archiving). Is it 5.0 ?

 If so,

What number will be returned by "infoDictionary?["CFBundleShortVersionString"]"?

it should return 5.0.

But, why having 2 different version numbers ? Is it a mistake or on purpose ?

I can confirm after shipping it shows 5.0. Thank you for your answer.

This came from a mistake.

Versioning Question
 
 
Q