I have an iOS project with two targets, one is intended to be the full version while the other one will be the lite version.
I’m using the following code in order to hide/show features.
#ifdef FULL_VERSION
NSLog(@"Full version");
#endif
This works well if I define preprocessor macros at project level, however when I set them at target level they don’t work.
By the way I’m setting them like this:
Apple LLVM compiler 3.0 - Preprocessing
Preprocessor Macros FULL_VERSION
I need to define them at target level in order to know which version is running.
Any ideas why they work only at project level?
My problem was that the scheme was not pointing the correct target. Editing the scheme solved the issue.