This is an Xcode auto-versioning script, written in Ruby which updates your
CFBundleVersion to the latest git revision number.
See the wiki for more information.
- Right-click the target you want to add the versioning phase to (usually the target that builds your app)
- Select: Add -> New Build Phase -> New Run Script Build Phase
/usr/bin/env macrubyas the Shell for the script
- Paste the script body into the Script text area
- Ensure that the build phase is at the end of the target's list of build phases