gpt4 book ai didi

Cordova 应用程序中的 iOS 内部版本号

转载 作者:IT王子 更新时间:2023-10-29 07:43:06 25 4
gpt4 key购买 nike

使用 Cordova 3.5.0,当我运行 cordova prepare ios 时,它会使用 config.xml 中的版本字符串覆盖我的内部版本号以及应用程序的版本号.

来自:

<widget id="tld.domain.app" version="1.0.1"  

它将 CFBundleVersion 设置为与短版本相同:

enter image description here

所以我必须不断地手动将内部版本号重置为我的格式,即 YYYYMMDD

理想情况下,我希望单独保留内部版本号,或者能够在 config.xml 文件中明确设置它。

这两种可能吗?

最佳答案

我在 this resolved issue 中找到了答案.

iOS 和 Android 有单独的 versionCode 属性(与 version 分开),需要添加到您的 config.xml 文件中:

<widget ... android-versionCode="201406092" ios-CFBundleVersion="201406092"

关于Cordova 应用程序中的 iOS 内部版本号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24116607/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com