Request: set JUCE_ENABLE_LIVE_CONSTANT_EDITOR=0 on iOS and Android


#1

Currently JUCE_ENABLE_LIVE_CONSTANT_EDITOR is set to 1, if JUCE_DEBUG is defined. But this crashes on iOS (and presumably android), because it obviously cannot read the source files.

The fix is to change juce_gui_extra.h from

#ifndef JUCE_ENABLE_LIVE_CONSTANT_EDITOR
 #if JUCE_DEBUG
  #define JUCE_ENABLE_LIVE_CONSTANT_EDITOR 1
 #endif
#endif

to

#ifndef JUCE_ENABLE_LIVE_CONSTANT_EDITOR
 #if JUCE_DEBUG && !JUCE_IOS && !JUCE_ANDROID
  #define JUCE_ENABLE_LIVE_CONSTANT_EDITOR 1
 #endif
#endif

Note: the module setting reads:
image
Which isn’t exactly true, as it’s enabled for debug builds and disables for release builds by default.

Another way to solve this would be to make the live constant editor work without needing to open the source files.

Best,
Ben


#2

Thanks, I’ll add those flags and update the documentation of the setting to make it clearer.