Skip to content
This repository was archived by the owner on Dec 4, 2026. It is now read-only.

xcodebuild: find x86Sim's checkout when cli/x86sim is a link to its binary - #17

Merged
designgears merged 1 commit into
x86simfrom
t3/rust-port-r4
Dec 3, 2026
Merged

designgears merged 1 commit into
x86simfrom
t3/rust-port-r4

Conversation

@designgears

@designgears designgears commented Dec 3, 2026 •

Copy link
Copy Markdown

x86Sim's cli/x86sim is becoming a relative symlink to its Rust x86sim binary (x86sim/x86sim#170). The xcodebuild stand-in found the repo root as dirname(dirname(realpath(cli/x86sim))), which now lands in the build folder. As a result, x86sim-aot was never found and every xcodebuild test failed with "Unable to find a device matching the provided destination specifier".

x86sim_root() now uses $X86SIM_ROOT; otherwise it walks up from the real path to the folder that holds cli/lib/config.sh.

x86sim/x86sim's Rust port round 4 (stacked on joshuaswarren#170) needs this. The XCTest parity suite and XCTestDemo pass with it.

🤖 Generated with Claude Code

…binary

x86Sim's cli/x86sim is now a link to the Rust x86sim binary in
tools/launcher/target/release, so dirname(dirname(realpath(cli/x86sim))) is
that build folder, not the checkout: x86sim-aot was never found and every
destination failed ("Unable to find a device matching the provided
destination specifier"). x86sim_root(): $X86SIM_ROOT, else the folder above
the real path that holds cli/lib/config.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@designgears
designgears merged commit 7db9022 into x86sim Dec 3, 2026
1 check passed
@designgears
designgears deleted the t3/rust-port-r4 branch December 3, 2026 17:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant