Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 12, How to suppress "Double-quoted include in framework header" warnings throughout entire project

With Xcode 12 there is a new default warning which will throw a warning anywhere you #import or #include with "quotes.h" instead of <brackets.h>.

Warning: "Double-quoted include in framework header"

How do you turn off this warning for the entire project?

like image 277
Albert Renshaw Avatar asked Sep 17 '20 23:09

Albert Renshaw


2 Answers

I think a simpler way is to go in the project's Build Settings a just set the option Quoted Include In Framework Header to No :

enter image description here

like image 170
Silas Avatar answered Oct 11 '22 17:10

Silas


You can disable these warnings for your entire project by navigating to your project's "build settings", finding the field "other linker flags" and adding the following flag:

-Wno-quoted-include-in-framework-header

like image 40
Albert Renshaw Avatar answered Oct 11 '22 16:10

Albert Renshaw