3

I'm developing an SDK and i need to know if the host app is in debug mode. clearly something like this:

#if DEBUG do something #else do something else #endif

won't work because this preprocessor macro is referring to the SDK mode and not the host app. Is there any way to know after the SDK is compiled if the host app is in debug/ release mode ?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
netanel
  • 31
  • 1
  • 4
  • Do you want to know if the app was built with the "debug" configuration versus the "release" configuration or do you wish to know whether the app is deployed via Xcode versus iTunes versus the App Store? – rmaddy Apr 23 '16 at 20:45
  • I want to know if the app was built with the "debug" configuration versus the "release" configuration – netanel Apr 24 '16 at 16:02
  • Did you find a way to do it? – David Chelidze Dec 03 '20 at 11:58

0 Answers0