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 + on top-left conor

Choose New Run Script Phase

Copy and paste this script

I have posted this script to GitHub Gist
Everytime when you build, project build number will auto update.