CFBundleVersion in the Info.plist file must contain a higher version than that of the previously upl

本文总结了苹果版本管理存在的bug,包括删除版本号前导零、版本比较混乱、只比较特定属性等问题,可能导致应用升级失败,并提供了可能的解决方案。

这个问题也轮到我遇到了。google很多次还是没有解决。今天先总结一下。

问题的主要根源貌似是苹果的版本管理存在一个bug.

以下信息来自stackflow.

1.apple会删除版本中数字先头的0。例如:1.02,实际上会当作1.2来处理。所以从1.02升级到1.1时就会出错。应为1.1<1.02(1.2)

2.apple有时候会很晕糊,会把你当前上传的版本,和你其他的app的版本作比较。这显然相当混乱。

3.apple或许只会用CFBundleVersion的版本来进行比较,Bundle versions string, short这个不要混淆了。

4.忽略

5.你上传的版本号和你在itunes里面看到的版本或许一点联系都没有。你可以任意更改itunes中的版本号来给你的用户看。

(具体想看上传的app的版本,可以到ITunes Connect > Manage Your Applications > Application X (your application in question) > View Details (bottom left corner) > Binary Details)

6.忽略

-----------------------------------------------------------------------------------------------------------------------------------------------

There's at least 1 known bug in Apple's upload server that they've not fixed for more than 12 months. Things to beware of:
1. Apple deletes any leading zeroes inside the version number; i.e. it is NOT treated as a number. e.g. "1.02" is treated by Apple as "1.2". So, for Apple, 1.02 is GREATER THAN 1.1
2. Apple sometimes gets "confused" and seems to compare your uploaded-app to the version of a DIFFERENT app you've previously uploaded. It's happened to a lot of people, and I've seen it myself a few times
3. Apple is supposed to be comparing the "CFBundleVersion" (i.e. "Bundle version" not the "Bundle versions string, short"); don't get mixed up.
4. Frequently, the only viable solution is to bump the front number (e.g. the "2" in "2.4" -- increase it to "3")
5. The version number you upload is unrelated to the version number that appears in iTunes - you can put anything you want there, and that's what your users will see
6. ...except, if you also report the "actual" version number inside your app, the user will see the CFBundleVersion (usually, depends how you code it), rather than the iTunes version (which - I think - cannot be accessed from inside your app)

http://stackoverflow.com/questions/4933093/cfbundleversion-in-the-info-plist-upload-error

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值