ITunes Connect Reset Build Number

Itunes requires that the Version Number (CFBundleShortVersionString) and Build Number (CFBundleVersion) be added to update the application . My question is: will the Bundle version value ever reset when increasing the version number? For example, if I upgrade version 2.2.1 (Build Number 9.5) in the current repository to version 2.3.0 (Build Number 1.0), will it be allowed? Or should the build number be> = 9.6? What is the convention for assembly number? Is there such a relationship between version number and build number? It just doesn't make sense to me to keep track of the old build number from the previous version.

+4
source share
2 answers

On iOS, you can reset the build number ( CFBundleVersion) every time you update the version number ( CFBundleShortVersionString).

This is what you need to do in your Xcode project. Version numbers or builds will never automatically reset.

Apple TN2420 Technical Note, version numbers, and build numbers

IOS:

For iOS applications, build numbers must be unique in each release, but they do not have to be unique in different release trains. That is, for iOS Apps, you can use the same build numbers again in different distribution models if you want.

Mac OS:

macOS . , macOS .

+1

, , . Apple , , ;) "" . , .

, , script . script:

#!/bin/sh
plist="$1"
dir="$(dirname "$plist")"
buildnum=$(/usr/libexec/Plistbuddy -c "Print CFBundleVersion" "$plist")

IFS="."
save=""
out=""
for i in $buildnum
do 
out=$out$save
save="$i."
done
A=($save)
save=${A[0]}
save=`expr $save + 1`
save=$(printf "%05d" $save)
out=$out$save
IFS="ABVVVV"
buildnum=$out
/usr/libexec/Plistbuddy -c "Set CFBundleVersion $buildnum" "$plist"

".sh" , ( ), xcode, ( ) , " ". "Run Script"

"" /bin/sh

#/bin/sh
/Users/..PutThePathToTheScriptYouSavedAboveHere.sh "${PROJECT_DIR}/${INFOPLIST_FILE}"

, X.XX.XXXXX, script .

0

All Articles