Xcode 13 editor complains about undefined/undeclared symbols
My Xcode 13 editor complains with errors when we use #import "file"
and the file path is not in a proper relative location to the source :
Please note that the undefined/undeclared symbol names are irrelevant there as they are part of ongoing work on another branch, but they are definitely being declared in the header file.
As an example the only way to prevent the errors I get in the attached picture is to do imports like this :
- use
#import <VLCMedia.h>
as VLCMedia.h is part of the project/module hence it's in headers search paths - use
#import "../Headers/Public/VLCMedia.h"
as this is the proper relative header file location
I think doing either way is the proper way to do it.
These errors don't prevent builds to succeed but are causing annoyances in editor and prevent proper code navigation.
I'm experiencing these errors in Xcode 13.1 and 13.2.1
It might have been fixed in Xcode 13.3 but I'm not able to install it as it requires macOS 12.0 and I'm still working on Big Sur.