Opened 2 weeks ago

Closed 2 weeks ago

#70901 closed defect (fixed)

TeXShop @5.44_0: error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.

Reported by: ShadSterling (Shad Sterling) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: sequoia Cc: Schamschula (Marius Schamschula), markemer (Mark Anderson)
Port: TeXShop

Description

2018 Intel macbook just upgraded to Sequoia, sudo port migrate and port restore --last are failing so I'm trying to reinstall individually

:info:build 2024-09-24 13:03:05.040 xcodebuild[31895:15640022] [MT] IDELogStore: Failed to open log store at /opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-hgouoaztesijdfgvhhdcezuevtzp/Logs/Build
:info:build 2024-09-24 13:03:05.040 xcodebuild[31895:15640022] [MT] IDELogStore: Failed to open Build log store: Error Domain=IDEFoundationErrorDomain Code=1 "Unable to create log store directory at '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-hgouoaztesijdfgvhhdcezuevtzp/Logs/Build': (513) You don’t have permission to save the file “Build” in the folder “Logs”." UserInfo={NSLocalizedDescription=Unable to create log store directory at '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-hgouoaztesijdfgvhhdcezuevtzp/Logs/Build': (513) You don’t have permission to save the file “Build” in the folder “Logs”.}. User info: {
:info:build     NSLocalizedDescription = "Unable to create log store directory at '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-hgouoaztesijdfgvhhdcezuevtzp/Logs/Build': (513) You don\U2019t have permission to save the file \U201cBuild\U201d in the folder \U201cLogs\U201d.";
:info:build }.

Attachments (1)

main.log (32.5 KB) - added by ShadSterling (Shad Sterling) 2 weeks ago.

Download all attachments as: .zip

Change History (9)

Changed 2 weeks ago by ShadSterling (Shad Sterling)

Attachment: main.log added

comment:1 Changed 2 weeks ago by Schamschula (Marius Schamschula)

That error can be ignored. However,

:info:build In file included from /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.44/Sources/MyPDFKitView.m:42:
:info:build In file included from /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.44/Sources/MyPDFKitView.h:25:
:info:build In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:13:
:info:build In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphicsContext.h:9:
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:237:20: note: 'NSEnableScreenUpdates' has been explicitly marked deprecated here
:info:build   237 | APPKIT_EXTERN void NSEnableScreenUpdates(void) API_DEPRECATED("As of 10.11 it is not generally necessary to take explicit action to achieve visual atomicity. +[NSAnimationContext runAnimationGroup:] and other similar methods can be used when a stronger than normal need for visual atomicity is required. The NSAnimationContext methods do not suffer from the same performance problems as NSEnableScreenUpdates.", macos(10.0,10.11));
:info:build       |                    ^
:info:build /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.44/Sources/MyPDFKitView.m:671:24: error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
:info:build   671 |     CGImageRef cgimg = CGWindowListCreateImage(rect1,
:info:build       |                        ^

is the real issue.

I will notify upstream.

comment:2 Changed 2 weeks ago by kencu (Ken)

Summary: TeXShop @5.44_0: You don’t have permission to save the file “Build” in the folder “Logs”TeXShop @5.44_0: error: 'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
Version 0, edited 2 weeks ago by kencu (Ken) (next)

comment:3 Changed 2 weeks ago by Marius Schamschula <mschamschula@…>

In cd2fcf036c678e637e56c8af551603ff2d62dd62/macports-ports (master):

TeXShop: work around ScreenCaptureKit issue

See: #70901

comment:4 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

This would be better:

if {${os.platform} eq "darwin" && [vercmp ${macosx_deployment_target} >= 15.0]} {
    macosx_deployment_target 14.0
}

I've updated this entry on SequoiaProblems.

comment:5 Changed 2 weeks ago by Schamschula (Marius Schamschula)

OK. However, I added it as an additional case using the existing pattern.

Making this change will affect quite a number of Portfiles.

comment:6 in reply to:  4 Changed 2 weeks ago by markemer (Mark Anderson)

Replying to ryandesign:

This would be better:

if {${os.platform} eq "darwin" && [vercmp ${macosx_deployment_target} >= 15.0]} {
    macosx_deployment_target 14.0
}

I've updated this entry on SequoiaProblems.

I think you're right - we don't want to accidentally bump the deployment target up.

comment:7 Changed 2 weeks ago by markemer (Mark Anderson)

Cc: markemer added

comment:8 Changed 2 weeks ago by markemer (Mark Anderson)

Resolution: fixed
Status: newclosed

Fixed in 37e04da

Note: See TracTickets for help on using tickets.