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

Feature Request: Analyze in Xcode only runs against uppermost subset of targets #3089

Open
aaronsky opened this issue Sep 12, 2024 · 1 comment
Labels
feature request New feature or request

Comments

@aaronsky
Copy link

Let me know if this is an inaccurate read of what is happening. From what I can see, when running Analyze against a target in Xcode (BwB, Bazel 7.3.1, rules_xcodeproj 2.7, rules_apple 3.8, rules_swift 2.1.1), the analyzer is only run against the source-list of the topmost library target in a top-level target. For example, the library of an ios_application, ios_unit_test, or ios_build_test. Sources in dependencies of that library target are not analyzed, and the analyzer doesn't appear to have much of an effect regardless.

Before I go through the process of sanitizing logs for y'all, does this sound familiar? Has the analyzer ever received attention in the ruleset? I would totally believe it if it had not yet.

@aaronsky aaronsky added the feature request New feature or request label Sep 12, 2024
@brentleyjones
Copy link
Contributor

It hasn't received any attention. I expect the issue is that target dependencies aren't represented in Xcode (as a performance optimization to prevent the compiler stubs from being run constantly). you could try to adjust _collect_dependencies to not filter out any dependencies to see if that fixes it for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants