I currently have this as a script to auto-increment the build number in my Xcode project:
#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"
What this script does is incrementing from let's say 1285
to 1286
.
What I want to do is have it on components: Increase it from 1.0.4523
to 1.0.4524
The reason I need this is because Fabric and iTunes Connect's Testflight use different notation systems for detecting a separate version and this way I can combine the two and not edit it manually always when doing a build for one and a build for the other.
Any help would be greatly appreciated! Thanks in advance!