title: How to add static libraries inside a C++ project with Xcode
body: <p>I'm developing a <strong>C++</strong> project by using <strong>Xcode</strong> <code>4.6.1</code> as IDE.
  Now, I'd like to add a static library <code>mylib.a</code> and the related header <code>mylib.h</code>.</p>
  
  <p>I read about <strong><a href="https://stackoverflow.com/questions/6124523/linking-a-static-library-to-an-ios-project-in-xcode-4">this solution</a></strong>, but it doesn't work (while clicking on <em>Target Dependencies</em>, the box is still remaining empty).</p>
  
  <p>Is there a way to achieve this task?</p>
  
  <hr>
  
  <h2>UPDATE:</h2>
  
  <p>I created a <em>group</em>, then I added the file <code>mylib.a</code> on it. It seems to work fine, but at compile-time a warning as follows appears:</p>
  
  <pre><code>ld: warning: ignoring file /Users/vdenotaris/Desktop/Code/MyStaticLib/mylib.a, file was built for archive which is not the architecture being linked
  (i386):/Users/vdenotaris/Desktop/Code/MyStaticLib/mylib.a
  </code></pre>