Where Do I Change version number in xcode
Solution 1
The version and build number is present on info.plist
. If you open this file, you'll see two entries related to versioning
- Bundle version string (short)
- Bundle version
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.
Solution 2
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
Related videos on Youtube
Toni Michel Caubet
Front end developer and wordpress lover; based in Mallorca, Spain. Founder @ Funcook
Updated on December 29, 2020Comments
-
Toni Michel Caubet over 3 years
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
-
Toni Michel Caubet over 6 years"The other option is to click over the project on project navigator", but where? ( sorry been using xcode only to release previous version ), thanks for you input
-
Claudio Redi over 6 years@Toni Michel Caubet, added a screen capture
-
Toni Michel Caubet over 6 yearsOK, I tried changing those values last night ( setting version and build to: 1.200001, and still having the same issue, any other thought? Thanks, again
-
Claudio Redi over 6 years
1100001
is greater than200001
. You need to pick a greater number as new version, any. For instance2000001
-
Toni Michel Caubet over 6 yearsYou mean greater by longer (in this case)?
-
Toni Michel Caubet over 6 yearsI changed to 1.200001111 and same result :S
-
Claudio Redi over 6 yearsWhat's the error now?
200001111
is definitively greater than1100001
(numeric comparison) -
Toni Michel Caubet over 6 yearsSame error message because it seems to submit the question posted version !
-
Claudio Redi over 6 yearsCan you add a screen capture of your current version and build settings?
-
Toni Michel Caubet over 6 yearsbefore my last comment I edited my question with "that" screenshot, is hat it?
-
Claudio Redi over 6 yearsI don't understand... on the sreenshoot still says version =
1.2000001
and not1.200001111
..... You need to put in there something greater than1. 1100001
-
Toni Michel Caubet over 6 yearsoohps, it was the earlier screenshot. but I updated it
-
Alex over 2 yearsThey must have changed this because the "General" tab that you have selected in your screenshot is no longer an option after clicking on the root of the directory. Do you know where to find this now?