I have tried a lot of scripts in xCode such as:
Insert Subversion revision number in Xcode
http://getsetgames.com/2009/10/21/automatically-insert-your-svn-revision-number-into-your-xcode-project/
http://www.red-sweater.com/blog/23/automatic-build-sub-versioning-in-xcode
http://www.noxeos.com/2011/09/13/xcode-build-number-svn/
http://bafford.com/2010/11/17/automatic-build-versioning-in-xcode-with-subversion/
but it wasn’t work.
I need to know how to add SVN revision number to iPhone App.
Thanks!
You can try the following step, this may help you out:
Manually set the CFBundleShortVersionString (aka “Bundle versions string, short”) value in your info.plist to your major.minor build number (e.g. 1.0)
Add a ‘run script’ build phase to your project with the following script
3.Clean and build (the Clean step forces Xcode to reprocess the info.plist).