Crash on OSX 10.9 and 10.10 related to CABTLEMIDIWindowController.h

Hi,

I am trying to make my application working on MacOSX 10.9 and 10.10 (it’s working perfectly above 10.10) but I have a crash at startup related to a missing symbol: CABTLEMIDIWindowController. (which has been introduced in 10.11)

After digging a bit in the code, I found in juce_audio_utils/juce_audio_utils.cpp a line (Introduced in Juce 5.4.4)

#import <CoreAudioKit/CABTLEMIDIWindowController.h>

Everything works correctly if I add the following preprocessor condition before the #import line

#if defined (MAC_OS_X_VERSION_10_11) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11

Can somebody confirm that I did the correct interpretation and that it’s a bug ?

Thanks

You need to set the “OSX Deployment Target” option in the Projucer to the earliest version of macOS that you want your app to run on (10.9 in your case).

Damned, I did change this option, but it seems that at some point I reverted the change… :flushed:

Sorry for the noise…

Sorry to revive this topic… but I get that crash now since JUCE 6.1.4 even though I have set the OSX Deployment Target even to 10.7?

Bump…