Skip to content

Instantly share code, notes, and snippets.

View kalcher's full-sized avatar

Sebastian Kalcher kalcher

View GitHub Profile
@bgreenlee
bgreenlee / xcode_auto_versioning.rb
Created January 22, 2011 05:48
Xcode Auto-Versioning: Updates your Info.plist's CFBundleVersion with the current git tag and/or sha. #xcode #git
# Xcode Auto-Versioning
#
# Updates your Info.plist's CFBundleVersion with the current git tag and/or sha.
#
# based on https://github.com/elliottcable/xcode-git-versioner
#
# Usage:
# 1. Right-click the target you want to add the versioning phase to (usually the target that builds your app)
# 2. Select: Add -> New Build Phase -> New Run Script Build Phase
# 3. Specify /usr/bin/env ruby as the shell for the script