DEV Community

Andreas Bergström
Andreas Bergström

Posted on • Edited on • Originally published at andreasbergstrom.dev

Set Xcode build numbers to incremented or timestamps

There's a particular kind of frustration reserved for archiving an Xcode build, waiting through the upload, and then being told the build number in Info.plist hasn't changed since the last submission. Automate it instead. A short Run Script build phase using PlistBuddy can either bump CFBundleVersion by one or replace it with a date +%Y%m%d%H%M timestamp — pick whichever fits how you reason about builds.

The full post has the two snippets, a note to enable "For install builds only" so it only fires when archiving, and a heads-up for anyone using App Center: if your CI pipeline is already auto-incrementing build numbers, a custom step like this will fight it.


Originally published at andreasbergstrom.dev — read the full post there.

Top comments (0)