No template named 'CFUniquePtr' using XCode13

I can no longer build a plugin using Juce 8.0.1 develop since commit

I get ‘No template named CFUniquePtr’ 10 times. It seems the cf helper methods are not included or somehow broken on my configuration by this commit. I am using Xcode 13.4.1 on macOS 12.7.3 and C++17 with CMake. Not sure why this happens as the way JUCE includes are organized puzzles me. I did erase my CMake build folder and regenerate everything from scratch, but it doesn’t help.

I found a solution. In case anyone else runs into this: It was caused by my code including juce_graphics/native/juce_CoreGraphicsContext_mac.h
I need this to access the CoreGraphicsContext on macOS, which is normally not needed.

Due to the way juce includes are (not) set up, this include now requires including juce_core/native/juce_CFHelpers_mac.h due to the changes in the commit I linked in the first post.

2 Likes