Skip to content

Conversation

@aaronsky
Copy link
Contributor

@aaronsky aaronsky commented Dec 3, 2025

This is the second in a stack of PRs across three repositories.

It takes the approach suggested in MobileNativeFoundation/rules_xcodeproj#1119 and applies it to our swift toolchain. By breaking sandboxing rules and remapping a derivable path to the source root, we can to allow Xcode, which bookkeeps all code coverage representations in the IDE as absolute paths, to present code coverage information in the gutters and test results.

@aaronsky aaronsky changed the title Enable code coverage in Xcode Enable code coverage in Xcode for swift-built targets Dec 3, 2025
@aaronsky aaronsky marked this pull request as ready for review December 3, 2025 19:33
aaronsky added a commit to bazelbuild/apple_support that referenced this pull request Dec 5, 2025
This is the first in a stack of PRs across three repositories. 

- #491 <-- you are here
- bazelbuild/rules_swift#1623
- MobileNativeFoundation/rules_xcodeproj#3250

It takes the approach suggested in
MobileNativeFoundation/rules_xcodeproj#1119 and applies it to the
xcode-clang toolchain. By breaking sandboxing rules and remapping a
derivable path to the source root, we can to allow Xcode, which
bookkeeps all code coverage representations in the IDE as absolute
paths, to present code coverage information in the gutters and test
results.
@aaronsky aaronsky merged commit 406899e into bazelbuild:main Dec 5, 2025
13 checks passed
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