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.