The warning flag is-Wincomplete-umbrella, so to suppress, pass -Wno-incomplete-umbrella
消除警告方法在OC 项目时候:
第一种:Build Settings -Other C Flags添加 -Wno-incomplete-umbrella
第二种:在PCH预编译文件里添加#pragma clang diagnostic ignored "-Wincomplete-umbrella"
要消除其他警告,可以先在这个网站查找对应的Flag,然后添加 #pragma clang diagnostic ignored "flag"
swift 项目中 需要加两个:(单独加一个不起作用)
1:Build Settings -Other C Flags添加 -Wno-incomplete-umbrella
2::Build Settings -Other Swift Flags 添加 -Xcc 和 -Wno-incomplete-umbrella (单独加这个项目运行不起来,报错。)
参考:
iOS 中cocopods 如何去除第三方框架的黄色警告 - 简书
"Lexical or preprocessor issue"解决方法_jacob_ios的博客-CSDN博客
Double-quoted include “YGMacros.h“ in framework header, expected angle-brack_reylen的专栏-CSDN博客
Xcode:消除警告“Umbrella header for module does not include header” - 简书
网友评论