-
Notifications
You must be signed in to change notification settings - Fork 65
Quartz interface fails to build on MacOS 15 #671
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
All pyobjc dependencies build on Python 3.15 except for pyobjc-framework-Quartz:
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk -I/Users/goldbaum/.pyenv/versions/3.15t-dev/include/python3.15t -c Modules/_coregraphics.m -o build/temp.macosx-15.7-arm64-cpython-315t/Modules/_coregraphics.o -Wno-deprecated-declarations -DPyObjC_BUILD_RELEASE=2602 -Werror -DPyObjC_GIL_DISABLED
Modules/_coregraphics.m:243:17: error: 'CGWindowListCreateImageFromArray' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
243 | CGWindowListCreateImageFromArray(screenBounds, windowArray, imageOption);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h:280:33: note: 'CGWindowListCreateImageFromArray' has been explicitly marked unavailable here
280 | CG_EXTERN CGImageRef __nullable CGWindowListCreateImageFromArray(
| ^
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
Platform information
- Python version
Python 3.15.0a7+ free-threading build (heads/main:74a82a2, Apr 2 2026, 14:08:21) [Clang 17.0.0 (clang-1700.6.4.2)] - How was python installed (python.org, anaconda, homebrew, ...)
pyenv install 3.15t-dev - macOS version Sequoia 15.7.5 (24G624)
To Reproduce
pip install pyobjc-framework-Quartz
Expected behavior
The build should succeed.
Additional context
I'm trying to run the setuptools tests on Python 3.15 and PyObjc is a mac-specific indirect test dependency of setuptools.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working