If you are developing apps with Xcode that are managed by subversion, it might come handy to get subversion information, like the revision number, into your application. Also other build information can provide useful later, like build date, gcc version and so on. You can e.g show this info in your about dialog, so the and user can inform you what version he is running. And this way your app knows when it was built and what revision it is, so you could probably send this info with bug or crash reports.
To achieve this, you can simply add a costum script to your build phases, which collects this information and writes it in a file. Either a simple text file, or you can choose to put the info in a header file so it’s available as a variable at code compile time.
more » »
