After upgrading to the latest Xcode I’m suddenly seeing warnings from 3rd party modules (and with -Werror these fail the build). This seems to be due to this “re-exporting” that means the targets lose their SYSTEM flag:
Explicitly adding the -isystem flag back to the third-party modules after calling juce_add_plugin() fixes the issue.
I can’t reproduce an issue here that’s relevant to Xcode 26.6 or the JUCEUtils.cmake section you linked.
I tried to come up with a simple project that links against a placeholder module with deliberate warnings, and then marked it as a SYSTEM dependency.
juce_add_module(modules/my_placeholder_module)
set_target_properties(my_placeholder_module PROPERTIES SYSTEM TRUE)
This compiles for me with both Xcode 26.6 (17F113) and an earlier version, or fails with both when omitting the SYSTEM property.
Is that how you’re using your dependency?
Also, I don’t understand how the wrapper target comes to depend on a 3rd party module, so that the above re-exporting is relevant. Can you provide a minimal project repro?