上传App Store Connect时提示CFBundleSh
2019-04-27 本文已影响0人
IT飞牛
在上传到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、或者其他的...