[FIXED] JUCE not compiling in sequoia 15.0

In the latest version of Sequoia, JUCE is no longer compiling. When attempting to build and run the old files (at least with CMake), it returns the following:

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,
        |                                 ^


This issue is fixed on the develop branch. Please update and let us know if the problem persists.

1 Like

I can confirm using develop resolves the issue for me. Is there a specific commit or PR with the fix…? So we can cherry-pick rather than switching branches

I believe it’s this commit:

1 Like

You’ll probably also want the following two commits

2 Likes