r-thomson / Nightfall

A macOS menu bar utility for quickly toggling dark mode, written in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot be compiled on Xcode 14.3

r-thomson opened this issue · comments

Trying to compile on Xcode 14.3.1 fails with this error

'init(display:outputWidth:outputHeight:pixelFormat:properties:handler:)' is only available in macOS 13.0 or newer

This is patently untrue, as this app has been using the same API for years. It seems this is a bug in Xcode, where this API was incorrectly marked as introduced in macOS 13.

Allegedly fixed in Xcode 15.

https://stackoverflow.com/questions/76181646/xcode-14-3-deprecating-quartcore-apis-in-a-weird-way

https://developer.apple.com/forums/thread/726289

Xcode 14.2, which is available for download from Apple’s website, works.

Closing this issue since Xcode 15 has been out for a while now.