I have built a framework to make it public and use with other project. It has built-in logs. So I am trying to give to an application developer (which wants to use my framework) an ability to enable/disable logs in the framework. The best way I was thinking about is that he can add a preprocessor macros definitions to the application's build settings like:
ENABLE_FRAMEWORK_LOGS = 1
so I could do something like this:
#ifdef ENABLE_FRAMEWORK_LOGS
NSLog(12345);
#endif
but I have a problem: My framework does not see predefined macros in application's build settings, it can see only predefined macros in the framework's build settings
so my question is: is it possible at all? and if it is not - what is the right way to do it?
thanks