Пример кода:
#import <Foundation/Foundation.h> #define pi 3.14 enum pet { cat, dog, chicken, cock, kitten }; typedef enum { notebook, netbook, ultrabook } laptop; int main(int argc, const char * argv[]) { @autoreleasepool { enum pet theMyPet = kitten; laptop theMyLaptop = notebook; #if DEBUG NSLog(@"theMyPet = %i", theMyPet); // theMyLaptop = 4 NSLog(@"theMyLaptop = %i", theMyLaptop); // theMyLaptop = 0 NSLog(@"pi = %f", pi); #endif } return 0; }
Сменить Debug на Release можно в меню Edit Scheme...
Далее Run PROJECT_NAME -> Info -> Build Configuration