Repository navigation
Fix building with Xcode 26 by leaving out the macOS 27 menu item update - #8
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
For all but trivial fixes, make sure to first create a GitHub issue that concisely describes the bug or desired enhancement as justification for the change. Large PRs with no justifying issue will be closed.
Related Issue
Closes #
Type of Change
Motivation and Context
The Build job failed after #7 was merged:
xcodebuildexited with code 65 while compiling the app target. The Test job passed, since it only buildsContainersCore.The status menu's items set
NSMenuItem.preferredImageVisibility, which AppKit adds in the macOS 27 SDK.#available(macOS 27, *)only decides at run time whether the line runs; the compiler still needs the property in the SDK. CI builds with Xcode 26.6, whose macOS 26 SDK doesn't have it. GitHub's macOS runners don't offer Xcode 27 yet, so CI can't move to it.Description
preferredImageVisibilityis now compiled only with Swift 6.4 or later (#if compiler(>=6.4)), the compiler that comes with the macOS 27 SDK in Xcode 27. Builds made with Xcode 27 still show the menu items' images on macOS 27. Builds made with Xcode 26 don't set the property, so on macOS 27 their menu items show no images.Testing