title: Static Libraries on iPhone device
body: <p>I have two projects, a Cocoa iPhone application and a static library which it uses.</p>
  
  <p>I've tested it successfully on the iPhone simulator, but when I try to deploy it to my iPhone device I get (symbol not found) link errors.</p>
  
  <p>If I remove the dependancy of the library the project builds/runs fine.</p>
  
  <p>I have made sure all the build settings are set to iPhoneOS not the simulator.</p>
  
  <p>Im sure its something simple, but has anyone run into similar problems moving from iPhone simulator to device?</p>
  
  <p>--EDIT: I have managed to create new projects (one for the application and one for the static library), and successfully get them to run on the iPhone or simulator. But I have a very strange problem... for each specific project I cannot get it working for BOTH the device and the simulator... I have double checked the build settings, made sure the libraries that are being references are for the matching build settings (I believe) but I cannot resolve these linking errors. </p>
  
  <p>I think I must be doing something very wrong... all the apple documentation says 'its super simple - one click' but this is giving me a lot of problems.</p>
  
  <p>This is probably something to do with xCode build settings, but I cannot seem to understand why selecting the different build platforms and rebuilding the libraries does not work.</p>