Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS CFBundleVersion version number, in Ionic apps

I have the following in the config.xml of my ionic app:

<widget android-versionCode="1630" id="com.boardline" ios-CFBundleVersion="1630" version="1.63" versionCode="1630" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

but Application Loader gives me the following warning:

The value for the key CFBundleShortVersionString [1.63] in the info.plist must contain a higher version number...

whereas I explicitly put ios-CFBundleVersion="1630"...

Can you help me figure this out ? I need the ios CFBundle Version to be 1630 and the ionic app version to be 1.63.

Thanks

like image 564
Louis Avatar asked Jun 04 '26 21:06

Louis


1 Answers

Maybe this

// assuming version = MAJOR.MINOR.PATCH-whatever
versionCode = PATCH + MINOR * 100 + MAJOR * 10000
CFBundleVersion = "MAJOR.MINOR.PATCH"

Plus this

this.appVersion.getVersionCode();

Could solve your problem (version code 1630 is not CFBundleVersion 1.63) Otherwise, refer to this other question.

Hope it helps.

like image 166
Pablo Albaladejo Avatar answered Jun 06 '26 12:06

Pablo Albaladejo