Skip to content

Cannot build against macOS 15 SDK #178

@fxcoudert

Description

@fxcoudert

because CGWindowListCreateImage is obsolete:

Actions/ColorPickerAction.m:86:35: error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
   86 |             CGImageRef imageRef = CGWindowListCreateImage(imageRect, kCGWindowListOptionOnScreenOnly, kCGNullWindowID, kCGWindowImageDefault);
      |                                   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h:271:33: note: 'CGWindowListCreateImage' has been explicitly marked unavailable here
  271 | CG_EXTERN CGImageRef __nullable CGWindcc  -include cliclick_Prefix.pch -I Actions -I .   -c -o Actions/MoveAction.o Actions/MoveAction.m
owListCreateImage(CGRect screenBounds,
      |                                 ^
1 error generated.
cc  -include cliclick_Prefix.pch -I Actions -I .   -c -o Actions/PrintAction.o Actions/PrintAction.m
make: *** [Actions/ColorPickerAction.o] Error 1
make: *** Waiting for unfinished jobs....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions