Toni Michel Caubet
Toni Michel Caubet

Reputation: 20163

Where Do I Change version number in xcode

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

Upvotes: 57

Views: 96920

Answers (6)

Hrusikesh
Hrusikesh

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

enter image description here

Upvotes: 2

alektech
alektech

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.

Check attached image

Upvotes: 3

Timchang Wuyep
Timchang Wuyep

Reputation: 821

Change from the Info.plist file

enter image description here

Upvotes: 11

jalxp
jalxp

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:

Versioning section on the Build Settings tab

Here you can find most of the version numbers you are interested in.

Upvotes: 9

jcesarmobile
jcesarmobile

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

Claudio Redi
Claudio Redi

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

  • 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.

Upvotes: 65

Related Questions