Error ITMS-4236 when uploading build to iTunes because of build version
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.
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. :(
The build number must be a "period-separated list of at most three non-negative integers." See Apple's documentation on CFBundleVersion.
When validating my app with "Version 1.0.0" and "Build 1.0.0-0" using Xcode 11.5, I received this message:
"Unable to process application at this time due to the following error: This bundle is invalid. The value for key CFBundleVersion [1.0.0-0] in the Info.plist file must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion."