ios - Is the XCode Build (CFBundleVersion) value ever treated as a number? -
in answer https://stackoverflow.com/a/22109738/448734, leo speaks of needing higher build number force update. there many descriptions such https://stackoverflow.com/questions/10091310/heres-how-to-auto-increment-the-build-number-in-xcode people use field number.
however, field string, , empirically there seems no problem putting "3.8.3 beta 4c" in there.
so question is: field ever treated number, , compared 1 considered higher another? if so, how comparison done when string contains non-numeric characters, or multiple decimal points? documented?
the value of string not important. important new build appears in itunesconnect, , appstore. said "higher build number" people do. can go "5.6.1" "1.0.561" , considered new build.
regarding script, can create post-build or pre-archive script logic increment build. it's shell code, can convert part of string number, increase it, , convert string again.
Comments
Post a Comment