CMake macOS CommandlineTools support

I’ve been trying to upgrade from JUCE 6.0.5 to 6.1.2, but running into some issues. It appears that a variant of the patch suggested above has been applied since 6.0.5.

After upgrading I’m getting Rez AUResources.r lookup errors again. 6.0.5 appears to have worked, because it was still searching for things in the (manually installed) Extras/CoreAudio path. Those paths have been since been removed in favor for the CMAKE_OSX_SYSROOT-based path.

I’ve tried a few things such as re-installing command line utilities and Xcode, but I can’t seem to get a build to succeed. What sort of setup is everyone running where they are able to build AUs cleanly with CMake? Do I need to adjust the deployment target in some way?

Apologies for the silly questions. I’d be grateful for any suggestions.