I'm porting a project to be built with MacOS. We compile the current source revision number into our code which is used to track version compatibility between files and libraries at a code level.
-DSRC_REVISION=12345
In our existing build system 12345 is output (as text) by a script called by make and turned into a build option each time make is run.
How might I do the same in XCode.