PhoneGap:如何在配置中设置Build和Version属性。xml iOS吗?

时间:2021-02-24 07:25:48

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

iOS应用程序有一个版本,一个版本号。当使用配置。我可以设置的一个PhoneGap/Cordova项目的xml

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

此属性将版本和构建设置为1.1.0。

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

是否有办法在config.xml中分别设置版本和构建号?

1 个解决方案

#1


21  

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

从https://cordova.apache.org/docs/en/dev/config_ref/index.html #小部件。

#1


21  

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

从https://cordova.apache.org/docs/en/dev/config_ref/index.html #小部件。