Skip to content

Conversation

@OparinE
Copy link

@OparinE OparinE commented Oct 20, 2025

Ability to build swift code by xcode from user defined DEVELOPER_DIR was significant feature of bazel 8.3.0

However, if doesn't work fully.

swiftc compiler doesn't run directly in build action. It is launched through xcode_locator, which set DEVELOPER_DIR before swiftc call.

Problems are:

xcode_locator doesn't respect DEVELOPER_DIR (defined by me).
xcode_locator selects installed xcodes only.
First problem looks even worse, because xcode_swift_toolchain determines "my" xcode and plans to use it (xcode_swift_toolchain analyzes DEVELOPER_DIR), but it doesn't guarantee "my" xcode usage (because of xcode_locator as intermediate lawyer).

As feature user I want to say, that if I set DEVELOPER_DIR, I know better what xcode should be chosen and accept all risks.
This is very important when you try to build swift code on newest MacOS by old xcode. You can't install it due to OS policies, but you would like (and actually can) to use it still by extracting .xip archive.

Issue: #27238

@OparinE OparinE marked this pull request as ready for review October 20, 2025 11:22
@OparinE OparinE requested a review from a team as a code owner October 20, 2025 11:22
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Oct 20, 2025
@iancha1992 iancha1992 added the team-Core Skyframe, bazel query, BEP, options parsing, bazelrc label Oct 21, 2025
@meisterT meisterT added team-Rules-ObjC Issues for Objective-C maintainers and removed team-Core Skyframe, bazel query, BEP, options parsing, bazelrc labels Oct 28, 2025
@Fil-Den
Copy link
Contributor

Fil-Den commented Oct 31, 2025

@meisterT, could you please review this PR?

@meisterT
Copy link
Member

I am not a good person to review this. @keith, can you perhaps help out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Rules-ObjC Issues for Objective-C maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants