MacOS Sequoia, Xcode and JUCE compatibility

Hello,

i just upgraded a mac to Sequoia and need to update (or do something) to Xcode 15. What’s the recommended Xcode version that runs preferrably out-of-the-box and is compatible with JUCE 7 and 8?

Hey,

If you find a working solution for building JUCE7-based projects on Sequoia, let us know.

For the time being I use a Parallels VM for building JUCE7 projects. I attempted to automate most of the installation steps using this script:

I have no problem building JUCE 7.0.7 projects with Xcode 16.2, Sequoia 15.5 on Intel Mac. I’m not actively developing with JUCE ATM so this is based on testing simple clean/rebuild. Haven’t tried any other setups.

Also might add that these are all Projucer projects, tested by just opening the XCode projects that have been already saved from Projucer some time ago.

What kind of problems are people seeing with Sequoia and JUCE 7?

CMake projects fail at this step (during the configure stage):

-- Building juceaide
CMake Error at JUCE/extras/Build/juceaide/CMakeLists.txt:134 (message):
  Failed to build juceaide
[...]
JUCE/modules/juce_gui_basics/native/juce_Windowing_mac.mm:532:33:
  error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 -
  Please use ScreenCaptureKit instead.

    532 |         CGImageRef screenShot = CGWindowListCreateImage (CGRectNull,
        |                                 ^

I tried copying the macOS 14 SDK from Xcode 15, and forcing cmake to use that SDK version like so (this results in the same error unfortunately):
cmake -B build -G Ninja -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.sdk

Just some info for anybody stumbling in here, Projucer 7.0.9 seems to output Xcode projects that build and run without any issues with Xcode 16.2 on MacOS Sequoia.

When i setup my new machine i followed this, and i’m able to build juce 7 projects on sequoia using xcode 16: Compiling JUCE 7 on OSX Sequoia - a guide .
IIRC it did not work at first because i accidentally installed the cmake “release candidate”, but everything worked ok once i switched to the stable release instead.

1 Like

Linking my reply in another topic: