码迷,mamicode.com
首页 > 其他好文 > 详细

消除nonnull警告

时间:2020-07-24 16:21:59      阅读:78      评论:0      收藏:0      [点我收藏+]

标签:note   ons   nav   detail   ref   false   click   menu   finish   

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警告

标签:note   ons   nav   detail   ref   false   click   menu   finish   

原文地址:https://www.cnblogs.com/yuxiaoyiyou/p/13371713.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!