How to find out exact version of iPhone SDK for conditional compilation?
Posted
by Jochen
on Stack Overflow
See other posts from Stack Overflow
or by Jochen
Published on 2010-03-25T18:32:16Z
Indexed on
2010/03/25
18:33 UTC
Read the original article
Hit count: 511
iphone-sdk
|conditional-compilation
I'm looking for a macro that specified the exact version of the iPhone SDK used for compilation. This is needed because when compiling with (and only with) SDK 3.0, I need to add some additional code.
__IPHONE_OS_VERSION_MIN_REQUIRED
is not the right choice here, since it can be set by the user with parameter -mmacosx-version-min
. For example, a user can compile with min version -mmacosx-version-min=3.0
in SDK 3.1, so a check for __IPHONE_OS_VERSION_MIN_REQUIRED == 30000
would be true, even if the user is compiling with SDK 3.1.
Any help is appreciated.
Regards, Jochen
© Stack Overflow or respective owner