I have app in the App Store. The latest build uploaded to the App Store Connect (and is live) is version 1.10.5 and bundle is 16.
I created a new build with the version 1.2 and bundle 17. When I try to upload the new build to App Store Connect I get an error:
Invalid Version. The build with the version “1.10.5” can’t be imported because a later version has been closed for new build submissions.
The new 1.2 is clearly higher than 1.10.5. Why is it not letting me upload? Why is it trying to "import" 1.10.5 which is already live?
I had the same issue when going from
1.1, so I changed it to
1.10 and it worked (hence the current version is 1.10.5, when it actually should be 1.1.5). I don’t doubt if I change my new version to 1.20 it will work, but I am confused why this is happening and I don’t want to be adding zeros every time.
When Apple evaluates the version number, it considers each part of the version number (separated by .) as an individual value. Values must be greater or equal to the previous version, moving left to right, and at least one of the numbers must be greater than the previous value in that position. Values to the right of the incremented value do not matter.
If we call the positions, moving left to right major, minor and patch we can examine what happened with your app:
You released 1.01, which has major=1, minor=01=1 and no patch (That you have provided in your question, anyway).
You then tried to released 1.1, which has major=1, minor=1 and no patch ie. It is the same version because leading zeros don’t matter. 01 = 1
At this point you could have released 1.02 (minor = 2) but you went with 1.10.5, so minor=10 and patch=5
When you then try to upload 1.2 you have minor=2 which is less than the previous value in that position, 10.
Your next version can be 1.11.x as 11 > 10. You do not need to jump all the way to 20.