In my case, local frameworks were the problem. The product build does work, but the Xcode index builder couldn't find them.
Here is the sample code.
The problems were reproduced with Xcode 14.1 and 14.2.
You can find the same problem with the project in the start directory.
And the problem was solved with the project in the final directory by specifying the search path of the build settings.
(FRAMEWORK_SEARCH_PATHS, LIBRARY_SEARCH_PATHS, and SWIFT_INCLUDE_PATHS were set)
https://github.com/gatherheart/IndexingError
I reported this problem via FA also.
could u plz check the FA threads? (FB11997524, FB11982383)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: