One) the first method
Where there is a warning in the project, right-select review in log and you can see a warning like [Wnonnull],
This similar warning can then be removed by adding-wno-nonnull to other Warning flags in the engineering buildsettings.
The rule is:-wno-type
①ios removal of the third library warning where there is a warning in the project, right-click to select Review in log to view
② then you can see a warning like [-wreceiver-expr]
③ then add-wno-receiver-expr to other warning flags in the engineering buildsettings to get rid of this similar warning.
The following 90% warnings are included
-wno-receiver-expr
-wno-unguarded-availability
-wno-unknown-warning-option
-wno-strict-prototypes
-wno-implicit-retain-self
-wno-documentation
-wno-strict-prototypes
-wno-deprecated-implementations
II) The second method
The warning generated by the cocoapods-dependent three-party library. Add the following to the Podfile:
Pod ' Mbprogresshud ', ' ~> 1.0.0 ',: Inhibit_warnings = True
How to get rid of third-party warnings in iOS engineering