You can use a shell script to find this info:

xcodebuild -version

Or use the following environment variables during build time:

XCODE_PRODUCT_BUILD_VERSION  4B110
XCODE_VERSION_ACTUAL         0410
XCODE_VERSION_MAJOR          0400
XCODE_VERSION_MINOR          0410

Doug Hill

> On Feb 1, 2016, at 1:49 PM, Jonathan Taylor <jonathan.tay...@glasgow.ac.uk> 
> wrote:
> 
> Can anybody tell me a compiler macro that will get me the version string of 
> Xcode itself? My attempts to google this are getting swamped by things that 
> are not what I am looking for.
> 
> I'd like to use this to provide information about the build environment with 
> which the code was built, in addition to information about the version of my 
> code that was being built (which I already have). Can anyone advise?
> 
> Cheers
> Jonny]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to