CFBundleVersion和CFBundleShortVersionString应该使用什么值? [英] What values should I use for CFBundleVersion and CFBundleShortVersionString?

查看:48
本文介绍了CFBundleVersion和CFBundleShortVersionString应该使用什么值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次提交iOS应用,我不希望我的应用被拒绝.

This is my first iOS app submission and I don't want my app rejected.

这是来自Apple文档:

This is from the Apple Docs:

CFBundleVersion (字符串-iOS,OS X)指定捆绑软件的内部版本号,用于标识捆绑软件的迭代(已发行或未发行).内部版本号应该是由三个非负的,由句点分隔的整数组成的字符串,其中第一个整数大于零.该字符串应仅包含数字(0-9)和句点(.)字符.每个整数前导零都会被截断,并且将被忽略(即1.02.3等于1.2.3).该密钥不可本地化.

CFBundleVersion (String - iOS, OS X) specifies the build version number of the bundle, which identifies an iteration (released or unreleased) of the bundle. The build version number should be a string comprised of three non-negative, period-separated integers with the first integer being greater than zero. The string should only contain numeric (0-9) and period (.) characters. Leading zeros are truncated from each integer and will be ignored (that is, 1.02.3 is equivalent to 1.2.3). This key is not localizable.

CFBundleShortVersionString (字符串-iOS,OS X)指定捆绑软件的发行版本号,用于标识应用程序的发行版本.发行版本号是由三个句点分隔的整数组成的字符串.第一个整数表示应用程序的主要修订,例如实现新功能或重大更改的修订.第二个整数表示实现次要特征的修订.第三个整数表示维护版本.

CFBundleShortVersionString (String - iOS, OS X) specifies the release version number of the bundle, which identifies a released iteration of the app. The release version number is a string comprised of three period-separated integers. The first integer represents major revisions to the app, such as revisions that implement new features or major changes. The second integer denotes revisions that implement less prominent features. The third integer represents maintenance releases.

此键的值与"CFBundleVersion"的值不同,"CFBundleVersion"标识应用程序的迭代(已发布或未发布).可以通过将其包含在InfoPlist.strings文件中来对其进行本地化.

The value for this key differs from the value for "CFBundleVersion," which identifies an iteration (released or unreleased) of the app. This key can be localized by including it in your InfoPlist.strings files.

但是似乎有点奇怪.我对此的解释是将两个值设置为相同,即:

But it seems a bit strange. My interpretation for this is to put both values the same, i.e.:

CFBundleVersion: 1.0.0
CFBundleShortVersionString: 1.0.0

有人可以确认100%那是我应该放的东西吗?

Can someone confirm 100% that is what I am supposed to put?

推荐答案

以这种方式思考:短版本"( CFBundleShortVersionString )是公共版本号.版本"( CFBundleVersion )更多是内部版本号,它比公共简短版本"更频繁地更改.我个人都使用相同的版本,但是很多人在每个版本上都更新版本".无论哪种方式,当您发布到Apple时,通常都可以更新简短版本".您多久更新一次版本"取决于您和您的需求.

Think of it this way: The "short version" (CFBundleShortVersionString) is the public version number. The "version" (CFBundleVersion) is more of an internal version number that could change far more frequently than the public "short version". Personally I use the same for both but many people update the "version" on every build. Either way you typically update the "short version" when you release to Apple. How often you update the "version" is up to you and your needs.

这篇关于CFBundleVersion和CFBundleShortVersionString应该使用什么值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆