title: RestKit/RestKit.h file not found error - version 0.10.0
body: <p>I am losing my hair in my attempts to get RestKit to build and work. I get the dreaded "Lexical or Preprocessor issue:  RestKit/RestKit.h file not found" message. I use Xcode 4.2 &amp; my project is for iOS.</p>
  
  <p>Earlier, I had debug mode working perfectly with RestKit 0.9.0. Then I ran into issues while trying to archive. After reading this forum and attempting some solutions, I decided to upgrade to 0.10.0 with hopes that it will solve the issue.</p>
  
  <p>Now, my project is not even building in debug mode and I get the same RestKit/RestKit.h file not found error.</p>
  
  <p>I have this under Header search path: "$(BUILT_PRODUCTS_DIR)/../../Headers". Can you please suggest (for 0.10.0 version):
  1) Where should the physical location of RestKit be? (It may not matter, but which one worked for you - with hopes that I can mirror your setting)
  2) I tried to point my header search path to "/Developer/Library/RestKit-RestKit-69adee9/" and later to "/Developer/Library/RestKit-RestKit-69adee9/Build"</p>
  
  <p>Throughly confused and frustrated..</p>
  
  <p><strong>EDIT1:</strong> After several hours, I gave up. Nuked my project. Created a fresh project. Re-created the files (copy paste from prev project). Now "RestKit not found" error is gone! But now, I am getting this other error:</p>
  
  <pre><code>Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_RKObjectMapping", referenced from:
  objc-class-ref in myclassname1.o
  "_OBJC_CLASS_$_RKObjectManager", referenced from:
  objc-class-ref in myclassname2.o
  ld: symbol(s) not found for architecture i386
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>I checked &amp; made sure that I did NOT add RestKit.framework... I've no idea why the clang error is happening now</p>
  
  <p><strong>EDIT2:</strong> The libRestKit.a was red. It is OK according to <a href="https://github.com/RestKit/RestKit/wiki/Installation-Troubleshooting">https://github.com/RestKit/RestKit/wiki/Installation-Troubleshooting</a> Just for the heck of it, I removed all the linked dependencies. Removed the "Other linker flags". Closed &amp; reopened Xcode. Put them all back. That error is gone. Maybe I missed a framework which resulted in clang error. But it is highly unlikely for I checked &amp; double checked. It works now.</p>
  
  <p>It builds &amp; archives on debug mode. I haven't tried the distribution mode yet.</p>
  
  <p><strong>EDIT3:</strong> Apple approved my app in the first go &amp; it is live! I still do not know what caused the issue here. Nuking an existing project &amp; creating a new one &amp; copying over the old files (&amp; periodically checking if build goes through) cannot be a solution. So I am leaving this question open.</p>