Where Do I Change version number in xcode

39,850

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)

enter image description here

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

Share:
39,850

Related videos on Youtube

Toni Michel Caubet
Author by

Toni Michel Caubet

Front end developer and wordpress lover; based in Mallorca, Spain. Founder @ Funcook

Updated on December 29, 2020

Comments

  • Toni Michel Caubet
    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):

    enter image description here

    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:

    enter image description here

    But the error still referencing the previous (published last year) version

    enter image description here

  • Toni Michel Caubet
    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
    Claudio Redi over 6 years
    @Toni Michel Caubet, added a screen capture
  • Toni Michel Caubet
    Toni Michel Caubet over 6 years
    OK, 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
    Claudio Redi over 6 years
    1100001 is greater than 200001. You need to pick a greater number as new version, any. For instance 2000001
  • Toni Michel Caubet
    Toni Michel Caubet over 6 years
    You mean greater by longer (in this case)?
  • Toni Michel Caubet
    Toni Michel Caubet over 6 years
    I changed to 1.200001111 and same result :S
  • Claudio Redi
    Claudio Redi over 6 years
    What's the error now? 200001111 is definitively greater than 1100001 (numeric comparison)
  • Toni Michel Caubet
    Toni Michel Caubet over 6 years
    Same error message because it seems to submit the question posted version !
  • Claudio Redi
    Claudio Redi over 6 years
    Can you add a screen capture of your current version and build settings?
  • Toni Michel Caubet
    Toni Michel Caubet over 6 years
    before my last comment I edited my question with "that" screenshot, is hat it?
  • Claudio Redi
    Claudio Redi over 6 years
    I don't understand... on the sreenshoot still says version = 1.2000001 and not 1.200001111..... You need to put in there something greater than 1. 1100001
  • Toni Michel Caubet
    Toni Michel Caubet over 6 years
    oohps, it was the earlier screenshot. but I updated it
  • Alex
    Alex over 2 years
    They 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?