Bug: `xcschemes.top_level_anchor_target` fails for `*_build_test` if the library was merged into another top-level-target
brentleyjones opened this issue · 0 comments
Description
Since 6f65b40 we can now list *_build_test
targets in xcschemes.top_level_anchor_target
macros. But if the *_build_test
target is for a library that has merged into another top-level target, then we get an error like this:
Run build target "@@//Lib:Lib ios_sim_arm64-dbg-ios-sim_arm64-min15.0-applebin_ios-ST-a89b5310e066" not found in:
[@@//Lib/dist/dynamic:iOS ios_sim_arm64-dbg-ios-sim_arm64-min15.0-applebin_ios-ST-a89b5310e066]
Where @@//Lib:Lib ios_sim_arm64-dbg-ios-sim_arm64-min15.0-applebin_ios-ST-a89b5310e066
is the library target that was merged into @@//Lib/dist/dynamic:iOS ios_sim_arm64-dbg-ios-sim_arm64-min15.0-applebin_ios-ST-a89b5310e066
, but also referenced by @@//Lib:ios_Lib
(which is an ios_build_test
).
Reproduction steps
Change minimum_os_version
to 15.0
on //Lib:ios_Lib
in examples/integation
. Then bazel run //:xcodeproj-incremental-bazel-sim_arm64
.
Expected behavior
Project generates without an error.
rules_xcodeproj version
Xcode version
N/A
Bazel version
N/A
rules_apple version
No response
rules_swift version
No response
Additional information
No response