google / google/eclipsa-audio-plugin

error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.

Open
#10 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
90
Forks
16
Avg merge
1d 18h
Merged PRs (30d)
1

Description

Hello,

I am trying to compile the VST3 plugins on MacOS 15.5 with M3 processor. I receive the following error message:

~~~
/Users/user/eclipsa-audio-plugin/third_party/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,
| ^


/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h:271:33:
note: 'CGWindowListCreateImage' has been explicitly marked unavailable here

271 | CG_EXTERN CGImageRef __nullable CGWindowListCreateImage(CGRect screenBounds,
| ^

7 warnings and 1 error generated.

ninja: build stopped: subcommand failed.
~~~

From what I understand, the code needs to be changed in order to incorporate the updated ScreenCaptureKit. I am not sure how to fix this; please advise how can I proceed with compiling the plugins.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.