消除nonnull警告

Posted yuxiaoyiyou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了消除nonnull警告相关的知识,希望对你有一定的参考价值。

https://stackoverflow.com/questions/32539285/pointer-is-missing-a-nullability-type-specifier

 

To disable this warning across your entire project

  1. Go to Build Settings

  2. Make sure you are viewing the "All" tab not "Basic" or "Customized"

  3. Search for the field Other Warning Flags.

  4. Add the following flag: -Wno-nullability-completeness

  5. Now clean and build (??K then ?R)

  6. Quit Xcode and re-open it (Don‘t skip this step!)

    Note: It can take a few seconds for the warnings to go away even after you finish building and relaunching Xcode, for me it takes about 15 seconds for Xcode to fully update.

share  improve this answer   

以上是关于消除nonnull警告的主要内容,如果未能解决你的问题,请参考以下文章

iOS:消除项目中警告

xcode 消除警告

clang消除警告

生成代码文档时如何消除意外缩进警告的原因?

怎样消除unchecked警告

ios deprecated 警告消除 强迫症的选择