#define DEBUG 1 or 0 to disable.
The error is because you are calling a method of NSString while its a compile constant. In other words you are telling the compiler something it simply can't handle. You will need to initialize such a dynamic link on launch, the compiler can't do this for you.