xcode 由于构建版本,将构建上传到 iTunes 时出现 ITMS-4236 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26763222/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error ITMS-4236 when uploading build to iTunes because of build version
提问by xemacobra
I was trying to upload a pre-release build to iTunes to use it with the new iTunes TestFlight integration.
我试图将预发布版本上传到 iTunes,以便将它与新的 iTunes TestFlight 集成一起使用。
The way I have my continuous integration builds setup is that each release gets tagged with the git commit short hash.
我进行持续集成构建设置的方式是每个版本都使用 git commit 短哈希标记。
Example:
例子:
Version: 1.7.6
Version: 1.7.6
Build Version: 1.7.6.4ABD89A
Build Version: 1.7.6.4ABD89A
I keep getting the following error with submitting:
提交时我不断收到以下错误:
ERROR ITMS-4236: "Invalid value '1.7.6 (4ABD89A)' for bundle_version at SoftwareAssets
ERROR ITMS-4236: "Invalid value '1.7.6 (4ABD89A)' for bundle_version at SoftwareAssets
I have tried different formats like: 1.7.6.4ABD89A
, 1.7.6 (4ABD89A)
and 1.7.6 [4ABD89A]
我尝试了不同的格式,例如:1.7.6.4ABD89A
,1.7.6 (4ABD89A)
和1.7.6 [4ABD89A]
I was wondering if anyone had this issue before and what formats are acceptable if those are not?
我想知道以前是否有人遇到过这个问题,如果没有,哪些格式是可以接受的?
回答by Mark Suman
iTunesConnect doesn't allow letters in the version numbers. I don't know if this is new with the TestFlight integration or if it's been like that for a while.
iTunesConnect 不允许在版本号中使用字母。我不知道这是 TestFlight 集成的新功能,还是已经有一段时间了。
We used to use letters in our version numbers to denote internal builds. Guess we aren't anymore.
我们过去常常在版本号中使用字母来表示内部构建。猜猜我们已经不是了。
回答by superarts.org
Unfortunately it's still the case. I used to have:
不幸的是,情况仍然如此。我曾经有过:
buildNumber=$(git rev-list HEAD | wc -l | tr -d ' ')<br>
buildHash=$(git rev-parse HEAD | cut -c1-4)`
But only buildNumber can be used now. :(
但现在只能使用 buildNumber。:(
回答by shehanrg
Just a quick note, I faced this issue in archive when the SVN version number merge with the build version number. In my case I had 1.0(6771M) and the "M" which means SVN Modifications are there in the project, gave me an error when uploading the build.
只是一个简短的说明,当 SVN 版本号与构建版本号合并时,我在存档中遇到了这个问题。在我的情况下,我有 1.0(6771M) 和“M”,这意味着项目中有 SVN 修改,上传构建时给了我一个错误。
So make sure you commit everything and prepare the archive.
因此,请确保提交所有内容并准备好存档。