Jun 21, 2014

[iOS] DEBUG mode in code

Check your projects build settings for debug to ensure that 'DEBUG' is being set - do this by selecting the project and clicking on the build settings tab. Search for 'DEBUG' and look to see if indeed DEBUG is being set.


then conditionally code for DEBUG in your source files

#ifdef DEBUG
// Something to log your sensitive data here
#else
//
#endif

No comments:

Post a Comment