I am using a Constants.h file to declare a lot of strings for resources like URLs and the like. This has always worked fine in the past, and in fact continues to work when I compile and run.
However the issue navigator shows errors (the red bangs) despite labeling them as "semantic issues" (which sounds more like a warning) and the code editor windows show them as well for lines like this:
[app openBrowserWithUrl:[NSURL URLWithString: kRequestInformationURL]];
The line in Constants.h looks like this:
static NSString * const kRequestInformationURL = @"http://www.myserver.com"; // uses SSL!
It's throwing up warnings/errors for all of my declarations in Constants.h. But it still compiles and runs fine! I have no clue what's going on here, but it's very annoying because my project now shows that I have lots of warnings/errors.
I should also add that this happens in the latest version (4.5.1) of Xcode on one of my Macs and not the other, opening the exact same project file.
Another thing I should note: you usually only see these error/warnings when you click on the file to edit it after compiling.
UPDATE EDITED: I thought that I got these to go away by adhering to more strict constants declarations, as explained in this post: https://stackoverflow.com/a/539039/326398 however all the warnings (which, as I said before, are marked with error icons in Xcode) came right back. So mystery is still very much intact.