Skip to content

Instantly share code, notes, and snippets.

@jemmons
Created February 22, 2017 16:26
Show Gist options
  • Save jemmons/13fee108ab6f794c39aab3a2799e8f2b to your computer and use it in GitHub Desktop.
Save jemmons/13fee108ab6f794c39aab3a2799e8f2b to your computer and use it in GitHub Desktop.
Build number in Xcode build script.
#!/bin/bash
if [ "${CONFIGURATION}" != "Debug" ]
then
buildNumber=$(date +"%Y%m%d%H%M")
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" ${INFOPLIST_FILE}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment