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

Failed build on macOS with Xcode 16.0 #11288

Open
shuxiao9058 opened this issue Sep 22, 2024 · 13 comments
Open

Failed build on macOS with Xcode 16.0 #11288

shuxiao9058 opened this issue Sep 22, 2024 · 13 comments

Comments

@shuxiao9058
Copy link

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_KeePassXC/KeePassXC/work/keepassxc-c1a66a8be98d8f3a7ea1ba0ca6065c2d1a10e56b/src/gui/osutils/macutils/AppKitImpl.mm:190:37: error: 'CGDisplayStreamCreate' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
:info:build   190 |         CGDisplayStreamRef stream = CGDisplayStreamCreate(CGMainDisplayID(), 1, 1, kCVPixelFormatType_32BGRA, nil,
:info:build       |                                     ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:242:41: note: 'CGDisplayStreamCreate' has been explicitly marked unavailable here

refer to: #10308

@droidmonkey
Copy link
Member

@phoerious we will need to fix this

@droidmonkey droidmonkey added this to the v2.7.10 milestone Sep 23, 2024
@varjolintu
Copy link
Member

This also happens with macOS Sequoia when building KeePassXC locally. Not depending on the Xcode.

@burnziii
Copy link

CGDisplayStreamCreate is deprecated see:
https://developer.apple.com/documentation/coregraphics/1455170-cgdisplaystreamcreate

@shemeshg

This comment was marked as off-topic.

@droidmonkey
Copy link
Member

The function that uses this call to CGDisplayStreamRef is actually just triggering the permission request to enable Screen Recording which is required for polling the window titles (if I recall correctly). If we can poll window titles using just the accessibility permission that would be ideal. Any ideas?

@shemeshg

This comment was marked as off-topic.

@droidmonkey

This comment was marked as off-topic.

@droidmonkey
Copy link
Member

droidmonkey commented Oct 6, 2024

BTW, you can continue to build properly if you set the following environment variable before running cmake: MACOSX_DEPLOYMENT_TARGET=10.14

@shemeshg

This comment was marked as off-topic.

@droidmonkey
Copy link
Member

We are talking about two different things. The linked code hides the window from other processes and remote viewers. I'm referring to harvesting window titles for use by auto-type. This thread doesn't impact hiding the main window.

@phoerious
Copy link
Member

BTW, you can continue to build properly if you set the following environment variable before running cmake: MACOSX_DEPLOYMENT_TARGET=10.14

This won't work for ARM builds. There it has to be at least 11.0.

@TheRojam
Copy link

TheRojam commented Oct 8, 2024

Idk if this helps.

'CGDisplayStreamCreate' is unavailable: obsoleted in macOS 15.0 - **Please use ScreenCaptureKit instead**

@colorenz
Copy link

Hi, is there anything new here? It seems there are also issues related to DisplayLink and KeePassXC, causing windows to sometimes become unmovable.

https://www.synaptics.com/products/displaylink-graphics/downloads/macos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

8 participants