Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: xcschemes.top_level_anchor_target fails for *_build_test if the library was merged into another top-level-target #2951

Open
brentleyjones opened this issue Mar 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@brentleyjones
Copy link
Contributor

brentleyjones commented Mar 12, 2024

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

871632e

Xcode version

N/A

Bazel version

N/A

rules_apple version

No response

rules_swift version

No response

Additional information

No response

@brentleyjones brentleyjones added the bug Something isn't working label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant