Hacking Gate

ERU

To dream and to build, To fail and to succeed.


Xcode project build number use svn revision

I wrote a script auto read svn revision number and replace Xcode project build number.

Select the project under TARGETS then click the +

Choose New Run Script Phase

Copy and paste this code

I have uploaded this script to GitHub Gist

Everytime when you build, project build number will auto update.

comments powered by Disqus