Issue with Audio Unit on 10.11

Seems I caught this one too, finally. Thanks everyone here for figuring this one out!

I’m looking into removing CoreAudioKit from my CMake builds as well, but having to patch the JUCE submodule messes up my git and versioning concept. So I’ve figured out a solution that works without patching, simply by removing linkage to CoreAudioKit from affected modules after the fact.

Note that this will break Standalone builds, so I only do this for Release builds where I don’t build Standalone anyway.

A bit of a hack, but maybe this can be useful to someone else as well:

set( affected_targets
    juce_audio_plugin_client_AU
    juce_audio_utils
)

foreach( tgt IN LISTS affected_targets )
    get_target_property( libs ${tgt} INTERFACE_LINK_LIBRARIES)
    list( FILTER libs EXCLUDE REGEX "CoreAudioKit.framework" )
    set_property( TARGET ${tgt} PROPERTY INTERFACE_LINK_LIBRARIES ${libs} )
endforeach()
1 Like