title: Warning "Instance method '-methodname' not found (return type defaults to 'id')" while it exist and works fine
body: <p>I found some similar questions belonging this warning, but they are not answered or not really precisely asked.</p>
  
  <p>My AppDelegate has an instance variable named <strong>AppModel* iVarModel</strong>.
  The App Delegate has a declared Property and meanwhile even a separate getter for it, like:</p>
  
  <p><strong>AppDelegate.h</strong>  </p>
  
  <pre><code>AppModel* iVarModel;    
  
  @property (nonatomic, retain) AppModel* iVarModel;  
  
  - (AppModel*) getAppModel;
  </code></pre>
  
  <p><strong>AppDelegate.m</strong></p>
  
  <pre><code>@synthesize iVarModel;  
  
  - (AppModel*) getAppModel {
    return iVarModel;
  }
  </code></pre>
  
  <p>In a different class
  I like to access this via the singleton application object:</p>
  
  <p><strong>FarFarAwayClass.h</strong></p>
  
  <pre><code>import "AppDelegate.h"
  ...
  </code></pre>
  
  <p><strong>FarFarAwayClass.m</strong></p>
  
  <pre><code>//get a pointer to the application object
  UIApplication* thisApp = [UIApplication sharedApplication];
  
  // get a pointer to the application's delegate
  id&lt;UIApplicationDelegate&gt; theDelegateObject = [thisApp delegate];
  
  
  // &gt;(1)&lt; access AppModel's property iVarModel
  AppModel* iVarModel_byProp = [theDelegateObject iVarModel];
  
  // &gt;(2)&lt; access AppModel's iVarModel via getter
  AppModel* iVarModel_byGet = [theDelegateObject getAppModel];
  </code></pre>
  
  <p>Independently how I try to access it >(1)&lt; or >(2)&lt; it works, but I do get this warning:</p>
  
  <pre><code>Instance method '-iVarModel' not found (return type defaults to 'id')
  Instance method '-getAppModel' not found (return type defaults to 'id')
  </code></pre>
  
  <p>Why does the compiler thinks those methods would not exist, even while he can use them correctly?</p>
  
  <p>By the way it does make no difference if I skip the getter or the declared property I do always get this warning.</p>