You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building laf, as part of building Aseprite 1.3.8.1, fails when using the macOS 15.0 deployment target, which is the default when building on macOS 15:
laf/os/osx/system.mm:118:22: error: 'CGDisplayCreateImageForRect' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
118 | CGImageRef image = CGDisplayCreateImageForRect(CGMainDisplayID(),
| ^
A workaround is to tell the build to use the macOS 14.0 deployment target (or earlier) by adding the flag -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 when running cmake.
The text was updated successfully, but these errors were encountered:
Yes, if you're distributing a binary to others, you want it to have the widest possible compatibility by using the oldest possible deployment target.
Users building for their own use on their own system don't care about that.
Using an older deployment target does work around the error but you will at some point want to update your code to build without errors when using the macOS 15 or later SDK.
Building laf, as part of building Aseprite 1.3.8.1, fails when using the macOS 15.0 deployment target, which is the default when building on macOS 15:
A workaround is to tell the build to use the macOS 14.0 deployment target (or earlier) by adding the flag
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.0
when runningcmake
.The text was updated successfully, but these errors were encountered: