https://stackoverflow.com/questions/32539285/pointer-is-missing-a-nullability-type-specifier
To disable this warning across your entire project
-
Go to Build Settings
-
Make sure you are viewing the "All" tab not "Basic" or "Customized"
-
Search for the field Other Warning Flags.
-
Add the following flag:
-Wno-nullability-completeness
. -
Now clean and build (⇧⌘K then ⌘R)
-
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.
-Wno-nonnull
instead of-Wno-nullability-completeness
– budidino Oct 3 '19 at 5:53-Wno-nullability-completeness
confirmed on xCode 11.4.1 – Albert Renshaw May 19 at 4:07