Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where Do I Change version number in xcode

Tags:

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

like image 926
Toni Michel Caubet Avatar asked Dec 22 '17 17:12

Toni Michel Caubet


People also ask

Where is build number in Xcode?

Click the Xcode Cloud tab and choose Settings in the sidebar. Click the Build Number tab below Settings. Click the Edit button next to Next Build Number. Enter a new build number and save your changes.


2 Answers

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.

like image 149
Claudio Redi Avatar answered Sep 18 '22 15:09

Claudio Redi


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

like image 34
jcesarmobile Avatar answered Sep 18 '22 15:09

jcesarmobile