Skip to content

packer: record the SDK version in LC_BUILD_VERSION - #392

Draft
ChouChiu wants to merge 1 commit into
xtool-org:mainfrom
ChouChiu:link-sdk-version
Draft

ChouChiu wants to merge 1 commit into
xtool-org:mainfrom
ChouChiu:link-sdk-version

Conversation

@ChouChiu

@ChouChiu ChouChiu commented Oct 24, 2026 •

Copy link
Copy Markdown

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.json and passes -platform_version ios <deployment target> <SDK version> to the linker of the app and its extensions (ios-simulator for 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?

  • Built Examples/DemoExtensions: llvm-objdump --macho --private-headers now shows sdk 27.1, minos 17.0 for the app and the extension, previously sdk 17.0.
  • Verified with MicYou-iOS, which currently passes the same -platform_version flags from its own Package.swift. With that workaround removed, the app built by this branch shows Liquid Glass on an iPhone.
  • swift test and make lint pass 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)

  • 0 - No AI was used to write code
  • 1 - I was assisted by AI. I reviewed the finished result.
  • 2 - I set the AI going and left it to it; nobody has read the result - no review, or AI review only

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

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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]>

This branch has not been deployed

No deployments
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.

Linux builds record the deployment target as the SDK version in LC_BUILD_VERSION (no -isysroot at link time)

1 participant