Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build against macOS 15 SDK #178

Open
fxcoudert opened this issue Sep 4, 2024 · 0 comments
Open

Cannot build against macOS 15 SDK #178

fxcoudert opened this issue Sep 4, 2024 · 0 comments

Comments

@fxcoudert
Copy link

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....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant