title: Referencing Classes from Different Targets in xCode for iPhone Unit Testing
body: <p>I am trying to unit test my iPhone application. I have created a new target and called it "LogicTests". But now I need to use a class called "Spaceship" inside the test. How can I do that? </p>
  
  <p>UPDATE 1: </p>
  
  <p>I made the <code>Spaceship.m</code> available to the unit testing target and that particular error was gone. Now I have different problem. The <code>Spaceship.m</code> file reference to the Cocos2d library. How can I add a reference to the Cocos2d library in the unit testing target. I tried right clicking the Link binary with libraries option and then adding the cocos2d framework but it gave me 153 errors or something. </p>