Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap: How to set Build and Version Property in Config.xml for iOS?

An iOS app has a version an a build number. When using config.xml of a PhoneGap/Cordova project I can set

<widget id="bundlename" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

This property sets the version as well as the build to 1.1.0.

Is there a way to set the version and build number separately in the config.xml?

like image 478
confile Avatar asked Sep 15 '14 23:09

confile


1 Answers

<widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
</widget>

<!-- Android -->
<widget versionCode="0.1.3">
</widget>

<!-- iOS -->
<widget CFBundleVersion="0.1.3">
</widget>

<!-- Windows -->
<widget packageVersion="0.1.3">
</widget>

From https://cordova.apache.org/docs/en/dev/config_ref/index.html#widget.

like image 79
user1234 Avatar answered Oct 15 '22 23:10

user1234