title: Xcode 5 & Cocos2d: Random Errors Like: 'No Known Class Method for Selector 'scene'?
body: <p>I'm really confused by the random errors that come up in Obj-c?
  The below is an error that came up after making minor unrelated changes in another class.
  Furthermore, the error remains even through I've undone the new bool i added to the header of a completely separate class!</p>
  
  <p>can some one please help me here, because my program i've been working on for a while now won't build at all, and I'm totally lost since I've no idea with the compiler is ignoring the above declared CCScene 'scene'...</p>
  
  <p>Thanks for your help</p>
  
  <pre><code>@implementation mainMenu
  
  +(CCScene *)scene
  {
  CCScene *scene = [CCScene node];
  mainMenu *layer = [mainMenu node];
  [scene addChild: layer];
  return scene;
  }
  
  - (void)loadAgainstTheClockMode:(id)sender
  {
  // Reload the current scene
  CCScene *scene = [HelloWorldLayer scene];
  [[CCDirector sharedDirector] replaceScene:[CCTransitionZoomFlipX     transitionWithDuration:0.2 scene:scene]];
  </code></pre>
  
  <p>Screen Shot...
  <a href="http://i.stack.imgur.com/DfrVB.png" rel="nofollow">http://i.stack.imgur.com/DfrVB.png</a></p>