Reputation: 20163
I have a IOS app released in the app store, using Cordova.
Now, I made several changes, but it seems that I cannot update the app in apple store, because (it's submitting with the same version number):
How do i update the version numbers in xcode so I don't get this error?
I searched the version number in the whole (Cordova) project and I did not found results, so question is:
How Do I change this value? ( either from the cordova project (platforms/ios) or the xcode project )
And I have this way setted in Xcode (obviously changing the "mybundle" for the right one:
But the error still referencing the previous (published last year) version
Upvotes: 57
Views: 96920
Reputation: 661
I have also followed the above accepted answers just to add with a bit more clarity with this Xcode Version 14.2 (14C18)
and I have followed below steps
Step - 1: From Xcode left side pane options select show project navigator
Step - 2: Then select the project you have in my case its AnimationApp so I clicked on it from left side project navigator options
Step - 3: Then from the right side select General tab and follow the Identity category options form where we can change the Version and Build which is 1.0.0 and 1 in my case as can be found below
Upvotes: 2
Reputation: 31
I've found a workaround; Open Xcode, go to "Runner (Project root)" -> "Build Settings: and, in the filter search, write the the current version of the app. All the instances of that version will appear, including FLUTTER BUILD NAME
and FLUTTER BUILD NAME NUMBER
and you can change them from there.
Upvotes: 3
Reputation: 437
Since the previous answers seem to be out of date, the place where you can now change this is under your Target > Build Settings > Versioning section
It should look something like this:
Here you can find most of the version numbers you are interested in.
Upvotes: 9
Reputation: 53301
Instead of changing it on the Xcode project, try changing it in the config.xml
file.
<widget id="com.test" version="1.3" ios-CFBundleVersion="1.200001111" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
</widget>
version
sets the CFBundleShortVersionString
(release version), and ios-CFBundleVersion
sets the CFBundleVersion
(build version)
Then run cordova prepare
Upvotes: 6
Reputation: 68400
The version and build number is present on info.plist
. If you open this file, you'll see two entries related to versioning
Another option is to click on the root on xcode project navigator, you'll see two text boxes to edit the same information (Version
, Build
)
For sure Cordova IDE offers another way to do it.
Upvotes: 65