Skip to content

Xcode 27 / Swift 6.4 not supported #260

Closed

Description

@genkernel

Just leaving it here for those who search.
xcode 26 & swift 6.3 is good. xcode 27 + swift 6.4 is bad

researcher agent said: Root cause: Swift 6.4's SwiftPM switched its default build system to swiftbuild (Apple's new swift-build engine), and that engine can't handle xtool's cross-compilation setup on Linux..

linux-box$ xtool dev build Planning... Building for debugging... [8/8] Linking prj1-App Build complete! (140.29s) Wrote to /home/node/xtool/prj1/xtool/prj1.app

Working 👍

Activity

  1. genkernel commented on Sep 15, 2026

    @genkernel
    ContributorAuthor

    aaaaaand closed!

  2. genkernel commented on Sep 15, 2026

    @genkernel
    ContributorAuthor

    Also smth to consider:

    agent: `Yes. In Packer.build() (Sources/PackLib/Packer.swift:72) the underlying swift-build subprocess is run with:

    Subprocess.run(buildConfig,
    output: .currentStandardError, // stdout → xtool's stderr
    error: .currentStandardError // stderr → xtool's stderr
    ).checkSuccess()

    So all compiler warnings/errors/progress stream through live, unmodified. One quirk: swift-build's stdout is also redirected to stderr, so if you pipe xtool dev build 2>/dev/null you'd lose compiler diagnostics — grep/filter on stderr, not stdout. Non-zero exit propagates via checkSuccess().`.

    Can stdout go to stdout, not stderr?

    And:
    For the later compile-time-per-function tracing, that'd be the -debug-time-function-bodies frontend flag — you'd need to check how PackLib's BuildSettings invokes swift-build to see if extra flags can be injected; want me to dig into that now? - I do like to measure & simplify code - what is a standard way to pass things like -debug-time-function-bodies to xtool's building setup?

  3. kabiroberai commented on Sep 15, 2026

    @kabiroberai
    Member

    Thanks for the callout. 6.4 support will be fixed once #229 lands. Targeting sometime this week!

    Keeping this open until then.

  4. changed the title [-]xcode 26 & swift 6.3 is good. xcode 27 + swift 6.4 is bad[/-] [+]Xcode 27 / Swift 6.4 not supported[/+] on Sep 15, 2026
  5. kabiroberai commented on Sep 15, 2026

    @kabiroberai
    Member

    Can stdout go to stdout, not stderr?

    Seems reasonable, feel free to make a PR

    what is a standard way to pass things like -debug-time-function-bodies to xtool's building setup?

    I intended to add flags like -Xswiftc. Can’t remember if I already did that. If not, this could be another candidate for a small PR.

  6. genkernel commented on Sep 15, 2026

    @genkernel
    ContributorAuthor

    Tiny #261 for stdout -> stdout.
    Leaving -Xswiftc untouched, seems like a thing to do after PR #229.
    Thanks for looking at it!

  7. pinned this issue on Sep 17, 2026
  8. kabiroberai commented on Sep 19, 2026

    @kabiroberai
    Member
  9. kabiroberai commented on Sep 21, 2026

    @kabiroberai
    Member

    Released xtool v1.20.0 with support for Swift 6.4 and Xcode 27 SDKs!

  10. unpinned this issue on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions