iOS开发之上传包遇到的问题解析:ERROR ITMS-90478: Invalid Version
可以看下这篇文章:《iOS开发之上传包遇到的问题解析 - https://www.jianshu.com/p/667257ae79c8》,这里遇到的问题多些,我目前是遇到一个版本号的问题。
iOS 的 ipa 包上传之后收到这样的邮件
错误码:
ERROR ITMS-90478: "Invalid Version. The build with the version “2.20.170928” can’t be imported because a later version has been closed for new build submissions. Choose a different version number."
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]."
版本标识注意规范:
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
解决办法以及知识点:
(1)取版本号要规范
(2)version版本号就是CFBundleShortVersionString,也是ITC上的对外版本号,build版本号就是CFBundleVersion也是ITC上的构建版本号
(3)每一次的Version和build都要比最近这一次ITC上对应的大
(4)每一次的Version要比最近这一次ITC上的build要大
(5)1.20 和 1.3.2 相比较,1.20 要大,这是因为 20 比 3 要大,而不要把 ‘.’ 看成小数点,这个只是一个分隔符号而已。
针对于以上的截图错误,我可以把现在的version和bulid版本号定为 2.30 或者 3.0、或者其他的。
然后我去 App Store Connect 里的 TestFlight 里查看,居然有个 1.30 的,所以知道了问题所在,这个 1.30 也不知道是啥时候弄的,应该是 1.3.0 不小心写成了 1.30 导致了 高版本,所以后来 1.3.2、1.3.4,怎么都提交不上去。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2020-09-02 CDN加速原理解析