title: How to fix Xcode expected type error
body: <p>Today when I opened up Xcode project and built it for the iOS simulator. Everything was working fine yesterday but this morning there is a compilation error.</p>
  
  <p>The following line is highlighted red in a header file and the message next to it says "Expected a type".</p>
  
  <pre><code>-(void) addObstacle:(Obstacle*) obstacle;
  </code></pre>
  
  <p>The bit of code hasn't changed in a few days so I'm not really sure why theres now an error.</p>
  
  <p>I have imported Obstacle.h and this is the Obstacle class header:</p>
  
  <pre><code>#import "kobold2d.h"
  
  @interface Obstacle : CCNode {
      int posXInGrid;
      int posYInGrid;
  
      CCSprite* sprite;
  }
  
  @property (nonatomic) int posXInGrid;
  @property (nonatomic) int posYInGrid;
  @property (nonatomic, retain) CCSprite* sprite;
  
  @end
  </code></pre>