Hello,
I updated to Xcode 16.3 and JUCE generates 95 warnings due to “-Wcast-function-type-mismatch”.
For example:
JUCE/modules/juce_core/native/juce_ObjCHelpers_mac.h:349:73: warning: cast from 'NSApplicationTerminateReply (*)(id, SEL, NSApplication *)' to 'IMP' (aka 'id _Nullable (*)(id _Nonnull, SEL _Nonnull, ...)') converts to incompatible function type [-Wcast-function-type-mismatch]
349 | [[maybe_unused]] const auto b = class_addMethod (cls, selector, (IMP) callbackFn, s.data());
I’m sorry, this seems to be linked to compiling for x86_64 (at least on my Silicon machine) and using the -Wextra flag. Here is how to reproduce it: cmake -Bbuild -G Xcode -DJUCE_BUILD_EXTRAS=ON -DJUCE_BUILD_EXAMPLES=ON -DCMAKE_XCODE_GENERATE_SCHEME=ON -DCMAKE_OSX_ARCHITECTURES="\$(ARCHS_STANDARD)" -DCMAKE_CXX_FLAGS="-Wall -Wextra"
Then compile the AudioPluginHost for instance.