Error ITMS-4236 when uploading build to iTunes bec

2019-03-10 16:45发布

问题:

I was trying to upload a pre-release build to iTunes to use it with the new iTunes TestFlight integration.

The way I have my continuous integration builds setup is that each release gets tagged with the git commit short hash.

Example:

Version: 1.7.6

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

I have tried different formats like: 1.7.6.4ABD89A, 1.7.6 (4ABD89A) and 1.7.6 [4ABD89A]

I was wondering if anyone had this issue before and what formats are acceptable if those are not?

回答1:

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.

We used to use letters in our version numbers to denote internal builds. Guess we aren't anymore.



回答2:

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. :(



回答3:

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.

So make sure you commit everything and prepare the archive.