Repository navigation
Fix build with the macOS 27 SDK - #2
Open
stepankandrushin wants to merge 1 commit into
Open
stepankandrushin wants to merge 1 commit into
stepankandrushin wants to merge 1 commit into
Conversation
The SDK that ships with Xcode 27 has no Darwin.Availability and no
Darwin.C.xlocale clang submodule any more, so
@import Darwin.Availability;
@import Darwin.C.xlocale;
fail with "no submodule named 'Availability' in module 'Darwin'" and
"no submodule named 'xlocale' in module 'Darwin.C'". Import the two
headers directly instead, which works with every SDK.
stepankandrushin
added a commit
to stepankandrushin/MacPass
that referenced
this pull request
Oct 8, 2026
A fresh clone does not build with Xcode 27 by following the README: - Xcode 27 builds for macOS 12 and later, MacPass and its frameworks declare 10.13. - carthage bootstrap --platform macOS also builds the iOS schemes of KissXML, KeePassKit and TransformerKit, because Xcode now lists macosx among the platforms of iOS targets, and they fail. - TransformerKit imports clang modules the macOS 27 SDK no longer has (MacPass/TransformerKit#2). - The project signs with the maintainer's team and needs a provisioning profile. The script takes care of each of these, installs Carthage if needed, builds the frameworks once and starts an ad hoc signed Debug build.
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.
TransformerKit does not compile with Xcode 27 (macOS 27 SDK):
The SDK no longer has those two clang submodules, so
@import Darwin.Availability;and@import Darwin.C.xlocale;fail. This replaces them with#import <Availability.h>and#import <xlocale.h>, which resolve on old and new SDKs alike.@import Darwin.C.time;still works and is left alone.NSValueTransformerName.his a public header, so the same error stops MacPass from building:carthage bootstrap --platform macOSfails at TransformerKit. Once this is merged, MacPass'sCartfileneeds its TransformerKit commit moved to the new one.Checked with Xcode 27.0 (27A266a): the
TransformerKit macOSandTransformerKit iOSschemes build, and MacPass builds and runs against the patched framework.