I reproduced this issue in the example project by adding resources to MixedAnswerLib_Swift and modifying the xcodeproj target. Here.
In this screenshot, you can see that the project contain xcassets resources for the MixedAnswerLib_Swift target, but MixedAnswerLib_Swift not in focused_targets list.
Expected behavior
The project do not include resources from transitive dependencies of focused_targets.
Description
If I include
ios_application
infocused_targets
, the generated project will contain resources from the transitive libraries of thisios_application
.Reproduction steps
I reproduced this issue in the example project by adding resources to
MixedAnswerLib_Swift
and modifying thexcodeproj
target. Here.In this screenshot, you can see that the project contain xcassets resources for the
MixedAnswerLib_Swift
target, butMixedAnswerLib_Swift
not infocused_targets
list.Expected behavior
The project do not include resources from transitive dependencies of
focused_targets
.rules_xcodeproj version
main
Xcode version
15.1
Bazel version
7.1.0
rules_apple version
No response
rules_swift version
No response
Additional information
No response