title: Adding OCHamcrest to an IOS Project
body: <p>The documentation for the project says just add the framework and the linker flags and you are good to go. Hours and hours of wasted time later, I have figured out that that's not true. If you do that, the project does not see the header files. You have to put the framework somewhere were the compiler will find the headers. In my case, that worked when I dropped the framework into /Developer/Library/Frameworks and then told it to recurse in searching that framework directory (do not fiddle around with the headers search directories). </p>
  
  <p>Then the problem I get is that the link fails with the message:</p>
  
  <pre><code>ld: framework not found OCHamcrestIOS
  </code></pre>
  
  <p>I noticed that the documentation for the project says that it was updated for Xcode 4. I pulled down the binary of the framework after checking out the code and wasting a ton of time unable to build the IOS version of the framework. </p>
  
  <p>The documentation is <a href="http://jonreid.github.com/OCHamcrest/" rel="nofollow">here</a>. </p>
  
  <p>I also noticed in that documentation that the cocoa instructions tell you to put a copy files phase into the build. I tried that. Didn't change the outcome.</p>
  
  <p>The last time I fell into a sink hole it was because the library was C++ code. Maybe that's still the problem. </p>
  
  <p>Barring a rapid solution here, I am going to go back to using STAsserts, as sickening as that prospect is, this is far, far worse.</p>
  
  <hr>
  
  <p>Update: reinstalled Xcode. Still doesn't work. There are cheap ways to make this work, like add the header files to the project. Did a <a href="http://www.jroller.com/robwilliams/entry/xcode_timesuck_again" rel="nofollow">blog post</a> about this that brought out a person with the same experience.</p>