iOS CFBundleVersion版本号,在Ionic应用程序中

时间:2016-02-02 09:59:01

标签: ios ionic-framework application-loader

我在我的离子应用程序的config.xml中有以下内容:

<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">

但是Application Loader给了我以下警告:

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

而我明确地提出ios-CFBundleVersion="1630" ...

你可以帮我解决这个问题吗?我需要ios CFBundle版本为1630,离子应用程序版本为1.63。

由于

1 个答案:

答案 0 :(得分:1)

也许this

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

this

this.appVersion.getVersionCode();

可以解决您的问题(版本代码1630不是CFBundleVersion 1.63) 否则,请参阅this other question

希望它有所帮助。