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

MACOS 15 error: 'CGDisplayCreateImageForRect' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead. #599

Open
aokinba opened this issue Jan 9, 2025 · 0 comments

Comments

@aokinba
Copy link

aokinba commented Jan 9, 2025

image # github.com/giongto35/cloud-game/v3/pkg/network/webrtc ../../pkg/network/webrtc/factory.go:76:27: cannot use ice.MulticastDNSModeDisabled (constant 1 of type "github.com/pion/ice/v3".MulticastDNSMode) as "github.com/pion/ice/v4".MulticastDNSMode value in argument to s.SetICEMulticastDNSMode # github.com/go-vgo/robotgo In file included from ../../../../../soft/gopath/pkg/mod/github.com/go-vgo/[email protected]/robotgo.go:42: In file included from ./screen/goScreen.h:14: ./screen/screengrab_c.h:28:21: error: 'CGDisplayCreateImageForRect' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead. 28 | CGImageRef image = CGDisplayCreateImageForRect(displayID, CGRectMake(o.x, o.y, s.w, s.h)); | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:391:33: note: 'CGDisplayCreateImageForRect' has been explicitly marked unavailable here 391 | CG_EXTERN CGImageRef __nullable CGDisplayCreateImageForRect( | ^ 1 error generated.
@aokinba aokinba changed the title error: 'CGDisplayCreateImageForRect' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead. MACOS 15 error: 'CGDisplayCreateImageForRect' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead. Jan 9, 2025
@aokinba aokinba closed this as completed Jan 9, 2025
@aokinba aokinba reopened this Jan 9, 2025
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

2 participants
@aokinba and others