Skip to content

Fix build with the macOS 27 SDK - #2

Open
stepankandrushin wants to merge 1 commit into
MacPass:masterfrom
stepankandrushin:master
Open

stepankandrushin wants to merge 1 commit into
MacPass:masterfrom
stepankandrushin:master

Conversation

@stepankandrushin

Copy link
Copy Markdown

TransformerKit does not compile with Xcode 27 (macOS 27 SDK):

Sources/NSValueTransformerName.h:23:16: error: no submodule named 'Availability' in module 'Darwin'
Sources/NSValueTransformer+TransformerKit.m:25:16: error: no submodule named 'Availability' in module 'Darwin'
Sources/TTTDateTransformers.m:28:18: error: no submodule named 'xlocale' in module 'Darwin.C'; did you mean 'signal'?

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.h is a public header, so the same error stops MacPass from building: carthage bootstrap --platform macOS fails at TransformerKit. Once this is merged, MacPass's Cartfile needs its TransformerKit commit moved to the new one.

Checked with Xcode 27.0 (27A266a): the TransformerKit macOS and TransformerKit iOS schemes build, and MacPass builds and runs against the patched framework.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant