Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
Experts Most Trusted Topic
xcode ios how to determine whether code is running in debug release build
xcode ios how to determine whether code is running in debug release build ¬†using -'ios,xcode,debugging,preprocessor,release'
I am making an app that processes sensitive credit card data.
If my code is running in debug mode I want to log this data to the console and make some file dumps. ¬†¬†
However on the final appstore version (ie when it is running in release mode) it is essential all of this is disabled (security hazard)!
I will try to answer my question as best I can; ¬†so the question becomes 'Is this solution path the right or best way to do it?'
// add `IS_DEBUG=1` to your debug build preprocessor settings ¬†
#if( IS_DEBUG ) ¬†
#define MYLog(args...) NSLog(args) ¬†
#define MYLog(args...) ¬†
Oct 13, 2015
to add a comment.
Related Hot Questions
Walkin Jobs Opening
Government Jobs Opening