Xcode 12,如何抑制“在框架标题中包含双引号"整个项目的警告 [英] Xcode 12, How to suppress "Double-quoted include in framework header" warnings throughout entire project

查看:99
本文介绍了Xcode 12,如何抑制“在框架标题中包含双引号"整个项目的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Xcode 12,有一个新的默认警告,它将在您使用"quotes.h"而不是<brackets.h> #import或#include的任何地方引发警告.

警告:在框架标题中包含双引号"

如何关闭整个项目的此警告?

解决方案

我认为一种更简单的方法是进入项目的Build Settings,只需将选项Quoted Include In Framework Header设置为 No 即可:

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?

解决方案

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 :

这篇关于Xcode 12,如何抑制“在框架标题中包含双引号"整个项目的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆