Since Xcode 8 we get a file not found error in the Xcode editor when importing the umbrella header for a framework.
The framework and the project that depends on it (both Objective-C projects) build without a single error or warning, but the Xcode editor complains that the framework header can't be found. Syntax highlighting and code navigation are broken for that file. The error is only displayed when the file is being edited and briefly disappears whenever the project is built (because it builds successfully) but then reappears after a couple of seconds.
This is a project that was created in Xcode 7. We don't see this issue in that version. These errors only appear in Xcode 8 (we've tried 8.1 and 8.2).
The two projects are both framework projects. The imported framework's xcodeproj file is referenced by the dependent project (i.e. the xcodeproj file was added to the project using "Add Files to MyProject.xcodeproj..." The dependency is listed in the "Linked Frameworks and Libraries" section of the dependent project's settings and is listed in the "Target Dependencies" build phase.
This problem is driving me crazy. I've spent countless hours deleting DerivedData, re-constructing projects from scratch, cleaning, re-building but nothing helps. Xcode 8 simply refuses to index the symbols from the dependency framework.
Does anyone have an idea what is causing this error?
Many thanks,
Simon