title: Simple command line object-c project, it can't find my Person.h class?
body: <p>I created a simple Person.h class:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  
  @interface Person : NSObject 
  {
      int age;
      int height;
  
  }
  
  -(void) print;
  -(void)setAge: (int) a;
  -(void)setHeight: (int) h;
  
  @end
  </code></pre>
  
  <p>And its implementation in Person.m:</p>
  
  <pre><code>#import "Person.h"
  
  
  @implementation Person
  
  -(void) print
  {
      NSLog(@"You are %i years old, and %i feet tall", age, height);
  }
  
  -(void)setAge: (int) a
  {
      age = a;
  }
  -(void)setHeight: (int) h
  {
      height = h;
  }
  
  @end
  </code></pre>
  
  <p>Both files are in the /source folder.</p>
  
  <p>Now in the main file test2.m:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  #import &lt;Person.h&gt;
  int main (int argc, const char * argv[])
  {
      NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  
  
  
      Person *p1 = [[Person alloc] init];
      Person *p2 = [[Person alloc] init];
  
      [p1 setAge:30];
      [p1 setHeight:6];
  
      [p2 setAge:25];
      [p2 setHeight:5];
  
      [p1 print];
      [p2 print]
  
      [pool drain];
  
      return 0;   
  }
  </code></pre>
  
  <p>I'm getting a 'no such file or directory' error at the import statement for Person.h.</p>
  
  <p>And as a result the lines referring to Person are also resulting in errors.</p>
  
  <p><strong>Why can't the file be found?</strong></p>
  
  <p>This is a xcode, command line project, using the foundation lib.</p>