Question

In my app I have an option defined in the Settings.bundle that is used only for debugging purposes.

Is there a way of hiding this from code, for when the application is in production, without manually deleting the option from Settings.bundle/Root.plist ?

Something in the lines of:

#ifdef DEBUG

// Remove the option from the settings bundle

#else

// Show the option in (or don't actually remove the option from) the settings bundle

#endif

Thank you!

Was it helpful?

Solution

There're a few options:

  • use a separate dev target with special Settings.bundle,
  • modify Settings.bundle with a Run script at Build Phases for the single target adding the section for DEBUG configuration, check CONFIGURATION variable for that.

OTHER TIPS

I'm almost certain there is no way to do that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top