title: How to get rid of the warning "file was built for unsupported file format" when linking with a static library?
body: <p>I've an application which includes an external library I developed, and I'm getting the following warning message every time I compile using the device as target:</p>
  
  <blockquote>
    <p>mylib-release-iphonesimulator.a, file
    was built for unsupported file format
    which is not the architecture being
    linked (armv7).</p>
  </blockquote>
  
  <p>I've 2 versions of the library, both added into the project. One built for the iphonesimulator and the other for iphoneos.</p>
  
  <p>Even though it works well on any target (seems the compiler takes the correct version of the library depending of the target) that sort of warning becomes anoying.</p>
  
  <p>Is any way to get rid of the warning, or even better compile both platforms on a single library avoiding to have 2 binaries of the same library?</p>
  
  <p>Thanks!</p>