上传App Store Connect时提示CFBundleShortVersionString填写有问题,Version和build的设置规范...

在上传到App Store Connect时,应用报错如下:

ERROR ITMS-90062: "This bundle is invalid. The value for key CFBundleShortVersionString [2.0] in the Info.plist file must contain a higher version than that of the previously approved version [2.20.170928]."

这是说我上传的version和build版本号比线上已有的小,不符合规则,需要重新设置个更大的。
关于version和build的版本标识注意规范:

Invalid or Non-Increasing CFBundleShortVersionString - The value specified in 
the bundle's Info.plist file for the key CFBundleShortVersionString must be 
a string consisting of at most three dot-separated components, where each 
component is composed only of the digits 0 through 9. For example,any of 
the following are syntactically valid values for 
CFBundleShortVersionString: "1.0", "4.2.1", "3.46", "1.112.0"; whereas the 
following are all syntactically invalid: "1.4.0.0.0.0.5", "GX5", "3.4.2b6", 
"2.6GM", "1.0 (Gold)", "-3.6". Additionally, each updated version of the same 
application must have a CFBundleShortVersionString that increases relative 
to that of the previous version that was actually made available for sale 
on the iTunes Store. For example, if a previously-available version had a 
CFBundleShortVersionString of "1.4", then any of the following would be 
acceptable as the next update: "1.4.1", "1.4.332", "1.5"; but all of the 
following (though syntactically valid) would be unacceptable: "1.4", "1.3", 
"1.3.9", "0.9". For more information about the CFBundleShortVersionString key 
and the Info.plist file, see Apple's Runtime Configuration Guidelines at 
http://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPRuntimeConfig/index.html

解决办法以及知识点:
①取版本号要规范
②version版本号就是CFBundleShortVersionString,也是ITC上的对外版本号,build版本号就是CFBundleVersion也是ITC上的构建版本号
③每一次的Version和build都要比最近这一次ITC上对应的大
④每一次的Version要比最近这一次ITC上的build要大
⑤1.20和1.3相比较,1.20要大,这是因为20比3要大,而不要把‘.’看成小数点,这个只是一个分隔符号而已...
针对于以上的截图错误,我可以把现在的version和bulid版本号定为2.30和2.30 、3.0或者3.0、或者其他的...

参考:https://www.jianshu.com/p/667257ae79c8

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

IT飞牛

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值