i want to ignore these warnings these warning appeared when i used
valid architechtures : arm64 armv7 armv7s
these type of warnings appearing in many headers .
i want to ignore these warnings just like clang does for deprecated warnings.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
i want something like this or any compiler flags to ignore these warnings
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