Re: Many new warnings after Xcode upgrade


Alex Zavatone
 

On Oct 29, 2020, at 7:16 PM, Quincey Morris <quinceymorris@rivergatesoftware.com> wrote:

I don’t have any special insights, but I think the warning is correct in that there has for some time been an (unwritten?) rule that the #imports *inside* a framework header should use angle brackets — for self-preservation.

Again with no special knowledge, that makes sense to me because imports with double-quotes will search the framework *client’s* include paths first, and that’s almost certainly wrong if there are any symbol conflicts with what’s defined in the framework.

That makes perfect sense. Is the header the umbrella header for the framework? Is so, then the < > brackets would make more sense since they would restrict searching for headers inside the framework (if I understand this correctly.)

In that case, I’d expect just replacing the quotes with < > and rebuilding may be just what is needed.

Cheers.

Alex Zavatone

Join cocoa@apple-dev.groups.io to automatically receive all group messages.