You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
Activity
genkernel commentedon Sep 15, 2026
aaaaaand closed!
genkernel commentedon Sep 15, 2026
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-bodiesto xtool's building setup?kabiroberai commentedon Sep 15, 2026
Thanks for the callout. 6.4 support will be fixed once #229 lands. Targeting sometime this week!
Keeping this open until then.
[-]xcode 26 & swift 6.3 is good. xcode 27 + swift 6.4 is bad[/-][+]Xcode 27 / Swift 6.4 not supported[/+]kabiroberai commentedon Sep 15, 2026
Seems reasonable, feel free to make a PR
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.genkernel commentedon Sep 15, 2026
Tiny #261 for stdout -> stdout.
Leaving
-Xswiftcuntouched, seems like a thing to do after PR #229.Thanks for looking at it!
packer: keep `swift build` stdout on stdout (#261)
kabiroberai commentedon Sep 19, 2026
Status update:
kabiroberai commentedon Sep 21, 2026
Released xtool v1.20.0 with support for Swift 6.4 and Xcode 27 SDKs!