title: Using #pragma to suppress “Instance method not found” warnings in Xcode
body: <p>I want to use <code>#pragma</code> (in Xcode) to suppress the warning:</p>
  <blockquote>
  <p>warning: instance method '-someMethod' not found (return type defaults to 'id')</p>
  </blockquote>
  <p>I've tried:</p>
  <pre><code>#pragma GCC diagnostic ignored &quot;-Wmissing-declarations&quot;
  </code></pre>
  <p>And several others, but nothing works.</p>
  <p>What warning causes the &quot;instance method not found&quot;?</p>
  <h3>Edit</h3>
  <p>As requested here is the actual code:</p>
  <pre><code>...
  
  if (sampleRate &gt; 0 &amp;&amp; ![self isFinishing])  //&lt;--- Warning here
  {
      return self.progress;
  }
  
  ...
  </code></pre>
  <p>And the build log output:</p>
  <pre><code>/Users/User1/Documents/Project/branch/client/Folder/CodeFile.m:26:32:{26:32-26:50}: warning: instance method '-isFinishing' not    found (return type defaults to 'id') [3]
       if (sampleRate &gt; 0 &amp;&amp; ![self isFinishing])
                              ^~~~~~~~~~~~~~~~~~
  </code></pre>