iOS 应用程序有一个版本和一个内部版本号。当使用 PhoneGap/Cordova 项目的 config.xml 时,我可以设置
<widget id="bundlename" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
此属性将版本和build设置为 1.1.0。
有没有办法在 config.xml 中分别设置版本和内部版本号?
最佳答案
<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>
来自 https://cordova.apache.org/docs/en/dev/config_ref/index.html#widget .
关于javascript - 适用于 iOS 的 PhoneGap : How to set Build and Version Property in Config. xml?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25858547/