title: How to combine object files (.o) to create static library (.a) for iOS?
body: <p>I have compiled a library and there are object files(.o). Now I want to combine them in a static library using ar. I am able to do that but when I add that file in iOS project it says the library is archive type while linking architecture is arm7. How do I get around this?</p>
  
  <p><strong>Solved</strong></p>
  
  <p>ar -crs libstatic.a *.o
  Previously I was using the ar from iOS SDK and I guess thats why it was failing.</p>