Skip to content

Fix Xcode navigation to symlinked external source files - #3343

Merged
adincebic merged 2 commits into
mainfrom
adin/fix-symlinked-external-sources
Oct 26, 2026
Merged

adincebic merged 2 commits into
mainfrom
adin/fix-symlinked-external-sources

Conversation

@adincebic

@adincebic adincebic commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Some libraries like RxSwift ship symlinks in their repositories. We noticed that it causes problems when navigating to the symlinked sources when they are in Bazel's external repositories directory via "jump to definition". Typically it works the first time and second time Xcode refuses to jump.

I traced the issue to the resolution of the symlinks where we resolved the file symlink but leave the parent directory unresolved, which causes Xcode to open sources at paths that don't match their build settings and break navigation.

so we now resolve the parent directory symlinks too.

Signed-off-by: Adin Cebic <cebic.ad@gmail.com>
@adincebic
adincebic requested a review from a team as a code owner September 17, 2026 15:19

@karim-alweheshy karim-alweheshy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adincebic
adincebic merged commit b493ced into main Oct 26, 2026
9 checks passed
@brentleyjones
brentleyjones deleted the adin/fix-symlinked-external-sources branch October 27, 2026 17:08
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.

3 participants