Repository navigation
Description
Description
xtool dev build fails on WSL2 x86_64 because xtool attempts to execute an actool binary that is never generated.
The build process successfully:
Authenticates with Apple Developer Services
Installs the Darwin SDK
Resolves Swift Packages
Downloads all Firebase, Capacitor, Facebook, Google Sign-In, and Sentry dependencies
However, during the build phase xtool attempts to run:
/home/selepe/sellhive2025/ios/App/CapApp-SPM/xtool/.xtool-tmp/actool --version --output-format xml1
and fails with:
actool is not an executable file
Inspection of the generated build directory shows:
xtool/.xtool-tmp/
├── Package.swift
└── Sources/
└── CapApp-SPM-App/
└── stub.c
There is no actool file present:
find xtool/.xtool-tmp -type f | grep actool
returns no results.
This suggests xtool is attempting to execute a file that was never generated.
Environment
Host OS
Ubuntu on WSL2
Host OS Version
PRETTY_NAME="Ubuntu 26.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="26.04"
VERSION="26.04.1 LTS (Resolute Raccoon)"
VERSION_CODENAME=resolute
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=resolute
LOGO=ubuntu-logo
Windows Host
PS C:\WINDOWS\system32> wsl -l -v
NAME STATE VERSION
- Ubuntu Running 2
PS C:\WINDOWS\system32>
Host Architecture
x86_64
Output:
uname -m
x86_64
iOS Device Version
iOS 26.x
Swift Version
Swift version 6.4 (swift-6.4-RELEASE)
Target: x86_64-unknown-linux-gnu
xtool Version
xtool 1.21.0
SDK Version
Output:
xtool sdk status
Darwin SDK is installed
Path: /home/selepe/.swiftpm/swift-sdks/darwin.artifactbundle
Flavor: normal
Version: epoch=3,darwinTools=1.1.0,oam=1.3.0
SDK generated from:
Xcode 27.1 Release Candidate
Error Output
Building for debugging...
error: The command
/home/selepe/sellhive2025/ios/App/CapApp-SPM/xtool/.xtool-tmp/actool --version --output-format xml1
failed to launch.
/home/selepe/sellhive2025/ios/App/CapApp-SPM/xtool/.xtool-tmp/actool is not an executable file.
error: Build failed
Error: exited(1)
Additional Investigation
The Darwin SDK was rebuilt and reinstalled successfully:
[Downloading OpenAppleMacros] 100%
[Downloading toolset] 100%
[Extracting XIP] 100%
[Installing SDKs] 100%
[Finalizing SDKs]
No SDK installation errors were reported.
However, after reinstalling the SDK, the same build failure occurs.
Activity
Selepe89 commentedon Oct 10, 2026
Additional investigation after filing
I've continued troubleshooting and want to add findings that may help narrow this down.
Environment recap
epoch=2,darwinTools=1.1.0,oam=1.3.0xtool devices(USB passthrough works)Steps already attempted
Result: SDK installs successfully, epoch changed from 3 to 2,
xtool sdk statusreports OK.swift sdk listshowsdarwincorrectly.Inspected
~/.swiftpm/swift-sdks/darwin.artifactbundle/toolset/bin/:dsymutil,ld64.lld,llvm-lib,orig/actoolbinary present~/.swiftpm/swift-sdks/darwin.artifactbundle/Xcode.app/Contents/Developer/usr/bin/actoolexists but is a Mach-O 64-bit arm64 executable — cannot run on x86_64 Linux (Exec format error).libAssetKit.a(static library)executableTargetin Package.swiftTMPDIR=~/xtool-tmpandmkdir -p ~/xtool-tmpbefore build:Observed behavior
xtool dev buildreaches the compile stage (planning/constructing completes) then repeatedly tries to launch:home/selepe/sellhive2025/ios/App/CapApp-SPM/xtool/.xtool-tmp/actool --version --output-format xml1
text
And fails with:
.xtool-tmp/actool is not an executable file
text
The
.xtool-tmp/directory contains onlyPackage.swiftandSources/—actoolis never generated there.Conclusion so far
xtool is expected to generate a Linux-native
actoolwrapper (backed by AssetKit) into.xtool-tmp/duringxtool dev build, but that step is not happening in this environment. The Darwin SDK toolset does not include a Linuxactoolbinary, and AssetKit upstream provides no CLI target to substitute.This appears to be a bug in the SDK layout / toolchain assembly step for WSL2 x86_64, not a project or user configuration issue.
Requested
actoolgeneration is expected from the SDK install or fromxtool dev builditself.actoolshim is available as a separate binary we can place intotoolset/bin/as a workaround.Thanks — happy to run any diagnostics you need.
kvapca commentedon Oct 10, 2026
I had the same bug. I discovered that
actoolis used forAssets.xcassetsfolder. The workaround is to temporary remove it.Selepe89 commentedon Oct 11, 2026
Thanks @kvapca — this confirms what I found.
Confirming the actool / Assets.xcassets link
I traced it the same way: the
.xtool-tmp/actoolinvocation only fires when the build walksAssets.xcassets. Moving the catalog out of the way lets the build skip it entirely. Good workaround for getting further, but it means no app icon, no splash, no named image sets in the final bundle.What I tried (in order)
Environment:
xtool sdk installandxtool sdk build+xtool sdk install ~/new-sdk-out/darwin.xtoolsdkepoch=2,darwinTools=1.1.0,oam=1.3.0Attempts to fix the actool error:
actoolis present intoolset/bin/— onlydsymutil,ld64.lld,llvm-lib.Xcode.app/Contents/Developer/usr/bin/actoolis a Mach-O arm64 binary (can't run on x86_64 Linux).xtool-org/AssetKitfrom source — produces onlylibAssetKit.a, no CLI executable, so no drop-in workaround.actoolfromjoshuaswarren/omarchy-apple-devtools/darwin-tools(AssetKit-based, real Linux x86_64 executable). Verified it runs and prints valid--versionXML.actoolintotoolset/bin/and into.xtool-tmp/actool. Build then wiped.xtool-tmp/at start and reported "actool is not an executable file" —.xtool-tmp/gets cleaned every run, so a manual drop-in doesn't survive.joshuaswarren/xtoolat SHAf0a1f90(the fork the omarchy installer uses). With that binary,.xtool-tmp/actoolno longer gets deleted before it's used. actool problem solved.Now blocked on XCFrameworks
With the patched xtool, the build gets past actool and fails on every binary dependency:
Selepe89 commentedon Oct 11, 2026
The directories exist under
.build/artifacts/and contain real bundles (Info.plist,ios-arm64/,_CodeSignature). SwiftPM still reports "There is no XCFramework found."I tried
_SWIFTPM_EXPERIMENTAL_LINUX_XCFRAMEWORK=1as an env var — no change. My understanding is SwiftPM expects the equivalent as a CLI flag (--experimental-xcframeworks-on-linux) that xtool does not pass through.Questions
xtool.ymlor an env var that forwards arbitrary flags to SwiftPM?.xtool-tmpwipe: is the expected behavior that xtool regenerates the tool wrapper after cleanup? On my system it cleans the directory but only re-createsPackage.swiftandSources/— noactool. Is that the piece that should be produced by the SDK install, or generated at build time from the toolset?joshuaswarren/xtool@f0a1f90include the XCFramework flag pass-through, or is that still upstream-only?Project: Capacitor 8 iOS app (Capacitor core + Cordova + 17 Capacitor plugins including Firebase, Facebook SDK, Google Sign-In, Sentry — all binary XCFrameworks).
Happy to run any diagnostics you want.
The directories exist under
.build/artifacts/and contain real bundles (Info.plist,ios-arm64/,_CodeSignature). SwiftPM still reports "There is no XCFramework found."I tried
_SWIFTPM_EXPERIMENTAL_LINUX_XCFRAMEWORK=1as an env var — no change. My understanding is SwiftPM expects the equivalent as a CLI flag (--experimental-xcframeworks-on-linux) that xtool does not pass through.Questions
xtool.ymlor an env var that forwards arbitrary flags to SwiftPM?.xtool-tmpwipe: is the expected behavior that xtool regenerates the tool wrapper after cleanup? On my system it cleans the directory but only re-createsPackage.swiftandSources/— noactool. Is that the piece that should be produced by the SDK install, or generated at build time from the toolset?joshuaswarren/xtool@f0a1f90include the XCFramework flag pass-through, or is that still upstream-only?Project: Capacitor 8 iOS app (Capacitor core + Cordova + 17 Capacitor plugins including Firebase, Facebook SDK, Google Sign-In, Sentry — all binary XCFrameworks).
Happy to run any diagnostics you want.
Selepe89 commentedon Oct 15, 2026
Thanks all — closing the loop on my side.
The actool issue was only the first wall. For a Capacitor 8 app the real blocker is that SwiftPM on Linux won't resolve the binary XCFrameworks the plugins ship (Capacitor, Cordova, Firebase, Sentry, etc.), even with the patched fork — so a full local build isn't viable for Capacitor projects right now.
What works for me instead:
xtool installxtool devstuck on Connecting step #19 (USBMUXD_SOCKET_ADDRESS → host:27015) fixed it; usbipd did not.Happy to leave this open for the .xcassets-in-SwiftPM question @dajiaohuang raised.