How to get rid of third-party warnings in iOS engineering

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.