Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1 of 3 tasks
The linker was recording the deployment target as the SDK version, and iOS then runs the app in compatibility mode (e.g. without Liquid Glass). Pass -platform_version with the version from the SDK's SDKSettings.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ChouChiu
force-pushed
the
link-sdk-version
branch
from
October 24, 2026 03:28
b481b8c to
c7744dd
Compare
This branch has not been deployed
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.
Closes #351. Related to #117: App Store Connect checks the recorded SDK version.
What does this PR do?
Apps built with xtool record their deployment target as the SDK version in
LC_BUILD_VERSION(e.g.sdk 17.0, minos 17.0). iOS then runs them in compatibility mode, without Liquid Glass on iOS 26+.On hosts other than macOS, this reads the version from the Darwin SDK's
SDKSettings.jsonand passes-platform_version ios <deployment target> <SDK version>to the linker of the app and its extensions (ios-simulatorfor simulator triples). If the SDK can't be read, xtool prints a warning and links as before. macOS is left alone, since Xcode's toolchain already passes the SDK to clang there (see #351).How was it tested?
Examples/DemoExtensions:llvm-objdump --macho --private-headersnow showssdk 27.1, minos 17.0for the app and the extension, previouslysdk 17.0.-platform_versionflags from its ownPackage.swift. With that workaround removed, the app built by this branch shows Liquid Glass on an iPhone.swift testandmake lintpass on Linux (Swift 6.4.1, Darwin SDK 27.1). The flag isn't added on macOS, where nothing was tested.AI tool usage
How much of this PR was AI-assisted? (check one)
The code was written by Claude Code. I haven't reviewed it line by line, but I tested the result on a real device as described above, so it's opened as a draft.
🤖 Generated with Claude Code