Ignore clang warnings related to property

前端 未结 1 1232

i want to ignore these warnings these warning appeared when i used valid architechtures : arm64 armv7 armv7s

相关标签:
1条回答
  • 2021-01-23 05:01

    If you go to the log navigator (the last tab on the left panel in Xcode), you can expand the "transcripts" (see View and filter logs and reports). Once you find the one that shows the build warnings, you can see what the precise -W code for each is, and then suppress it via your #pragma.

    Thus, in your revised question, you show us the -W code in question is -Wobjc-property-no-attribute. Thus you could do:

    #pragma clang diagnostic push
    #pragma clang diagnostic ignored "-Wobjc-property-no-attribute"
    ...
    #pragma clang diagnostic pop
    
    0 讨论(0)
提交回复
热议问题