-
Notifications
You must be signed in to change notification settings - Fork 89
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: same indexstore is imported two times with different targetPathOverride #3059
Comments
But that's the point of |
As I know, the |
The object path needs to match the the one the target would create, otherwise Xcode doesn't see unit file and recreates it (because it uses the same object path and gets the same expected hash). |
I see now how this will import the same indexstore twice even if the merged library never appears bare in the project. Ideally it should only import an indexstore with multiple |
When generating the xcodeproj, we can get which |
Description
I find two different units in Datastore for one source file after Indexing ends.
The two units are both imported from bazel generated indexstore because Xcode does not index the file 'ContentView.swift'
I think the reason may be that one indexstore is recorded two times with diffrent targetPathOverride in bi.filelist.
Reproduction steps
we can reproduce the behavior in examples/rules_ios.
Index.noindex/DataStore/v5/units
Expected behavior
one indexstore should not be imported with different targetPathOverride
rules_xcodeproj version
2.5.2
Xcode version
15.0
Bazel version
7.1.1
rules_apple version
No response
rules_swift version
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: