Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I erase build number when uploading a new version?

Tags:

xcode

ios

If for example, I have an app with the version of 1.0 and it has 30 builds (build 30 was uploaded to the App Store).

When I'll release version 1.0.1 should I erase the build number to 1? Or should it be 31?

Should it be 1.0.1 (1) or 1.0.1 (31)?

like image 485
FS.O6 Avatar asked Dec 15 '17 10:12

FS.O6


People also ask

What is the difference between version number and build number?

Build is a Executable file which is handed over to the tester to test the functionality of the developed part of the project. Version is the number of releases made according to the addition of the requirement of the client.

Can I upload a new build with same version after Apple's app review is done?

After creating a new version you can submit it with your latest build & also update all the details which you desire & all those will be reviewed & made live once apple review those. Can't I add new build under existing version ? @pcj No you can't do that.

When should you increase your build number?

If your company builds its assembly every day, you should increment the build number each day as well. so it means to increment build number when you recompile the source code e.g. when you modify the source code.

What is iOS build number version?

For an iOS app, the value of the CFBundleVersion key (“Bundle version” in Xcode) is the build number of the app while the value of the CFBundleShortVersionString key (“Bundle versions string, short” in Xcode) is the version number of the app.


2 Answers

From the ios docs

For every new build you submit, you will need to invent a new build number whose value is greater than the last build number you used (for that same version). For iOS apps, you may re-use build numbers when submitting different versions. For macOS apps, you must chose a new build number for every submission that is unique and has never been used before in any submission you have provided to the App Store (including build numbers used in previous versions of your app).

So you can use 1.0.1 (1) or 1.0.1(31) but I would really prefer later one. I couldn't remember during my development remembering version number, we always refer build version within the team. And our build version is always greater than the previous build version.

You can ask why we follow this? The answer is because it looks logically right for us and also android versioning follows the same thing

From android docs

versionCode — An integer used as an internal version number. This number is used only to determine whether one version is more recent than another, with higher numbers indicating more recent versions. This is not the version number shown to users; that number is set by the versionName setting, below. The Android system uses the versionCode value to protect against downgrades by preventing users from installing an APK with a lower versionCode than the version currently installed on their device.

like image 112
Inder Kumar Rathore Avatar answered Oct 16 '22 08:10

Inder Kumar Rathore


Technically for an iOS app the build number could start from 0 (or 1) again. For a Mac app that is not allowed. Wether you SHOULD do that is a different question.

Convention is that the build number always increments, also after a version number change.

See Apple's description of this: https://developer.apple.com/library/content/technotes/tn2420/_index.html

like image 41
Marcel Avatar answered Oct 16 '22 08:10

Marcel