title: Insert Subversion revision number in Xcode
body: <p>I would like to insert the current Subversion revision number (as reported by <code>svnversion</code>) into my Xcode project. I managed to insert the revision number into the <code>Info.plist</code> in the <code>$PROJECT_DIR</code>, but this is not a good solution, since the file is versioned. I tried to insert the revision into the <code>Info.plist</code> in the build directory, but then I get an error during the code signing phase (this is an iPhone application).</p>
  
  <p>Is there a simple way to get the revision number into the application using some build files, so that the changing revision does not change versioned files? I thought maybe I could create a temporary source file that would link with the others and provide a function to get the revision number. But I don’t know how to do that.</p>
  
  <p>I am not much interested in other solutions, ie. the <code>agvtool</code>. All I want is the revision number available to the application, without too much magic.</p>