Currently I'm using a build script in Xcode Build Phases:
#!/bin/bash
buildPlist=${INFOPLIST_FILE}
CFBundleVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $buildPlist)
CFBundleVersion=$(($CFBundleVersion + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" $buildPlist
Currently the build number is getting increased on every build, not very elegant.
Is there a possibility to check if the build system is running on Mobile Center to only increase the build number then?
Can't figure it out. – Help is much appreciated.