3

I know about the "treat warnings as errors" option in the build settings, but is there any way to set this for specific warnings only, or just for the "may not responds to selector X" ones?

Paul R
  • 208,748
  • 37
  • 389
  • 560
Zaky German
  • 14,324
  • 4
  • 25
  • 31

2 Answers2

2

Hmm, interesting, was Googling around and found this, if it helps - Selectively disable GCC warnings for only part of a translation unit?

Community
  • 1
  • 1
Tejaswi Yerukalapudi
  • 8,987
  • 12
  • 60
  • 101
1

following the link that Tejaswi supplied, i added this to the file and it generated an error instead of a warning:

#pragma GCC diagnostic error "-Wobjc-method-access"

by the way, getting the warning string for any warning you see in xcode can be done by clicking "reveal in log" for the warning. at the end of the log line for the warning will be the warning string in brackets.

Itay Bianco
  • 697
  • 6
  • 16