Skip to content

Conversation

@matthewbastien
Copy link
Member

@matthewbastien matthewbastien commented Dec 11, 2025

Description

The logic added that checks if a binary is managed by xcrun does not work if the toolchain is selected via the swift.path and DEVELOPER_DIR settings.

Unfortunately, without pointing at an xcrun shim directly, the extension cannot possibly know whether or not swift.path points at an Xcode/CommandLineTools toolchain without using brittle heuristics based on the path. Instead, the extension will now always use xcrun as a fallback on macOS when it can't find a binary within the toolchain path. There could be a case in which a public toolchain is selected and we end up using an Xcode binary, but that should only result from corrupted toolchain installations.

Issue: #1077

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

@matthewbastien matthewbastien merged commit 102ba05 into swiftlang:main Dec 12, 2025
28 checks passed
@matthewbastien matthewbastien deleted the xcrun-fallback-macos branch December 12, 2025 16:13
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.

2 participants