In article
<baef4568-56b2-4f1a-a155-272b984c4b54@[EMAIL PROTECTED]
>,
Korchkidu <korchkidu@[EMAIL PROTECTED]
> wrote:
> Hi,
>
> I would like to access the build settings from inside my code. For
> example, I would like to access the CURRENT_PROJECT_VERSION setting so
> that when I compile my program, I know which version of my program it
> is (and eventually build a string containing the version number of the
> program).
The following works for me:
In the "Preprocessing" section of the project's info, I added, under
'Preprocessing Macros'
SDKROOT="\"$SDKROOT\""
Test: this program uses SDKROOT:
#im****t <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@[EMAIL PROTECTED]
"Hello, World! %s", SDKROOT);
[pool release];
return 0;
}


|