title: iOS static library depending on other static library
body: <p>I have created a static iOS library using this <a href="http://www.galloway.me.uk/tutorials/ios-library-with-resources/" rel="nofollow noreferrer">tutorial</a>.
  The library itself depends on the <code>SocketRocket</code> library.</p>
  <p>SocketRocket is included as <code>#import &lt;SocketRocket/SRWebSocket.h&gt;</code>.</p>
  <p>When I build the library, everything works fine.
  However, if I integrate my library into my sample project, the following error is thrown.</p>
  <blockquote>
  <p>Lexical or Preprocessor Issue</p>
  <p>'SocketRocket/SRWebSocket.h' file not found</p>
  </blockquote>
  <p><strong>How can the library build, but later fail to find the file in the sample project?</strong></p>
  <p><strong>UPDATE</strong></p>
  <p>The Library has its Header Search Path set to <code>&quot;$(SRCROOT)/Vendor/SocketRocket/&quot;</code>, the sample project has the Header Search Path set to <code>&quot;$(SRCROOT)/Vendor/MyLibrary/&quot;</code>. If I set it to <code>&quot;$(SRCROOT)/Vendor/MyLibrary/**&quot;</code> it finds <code>SRWebSocket.h</code> and builds successfully. However, this includes all the SocketRocket Headers into the sample project as well and I don't want that.</p>
  <p><strong>UPDATE 2</strong></p>
  <p>I narrowed it down to the following</p>
  <ul>
  <li>In the static library one .h file uses <code>#import &lt;SocketRocket/SRWebSocket.h&gt;</code> to import SocketRocket.</li>
  <li>If I add the library to my sample project, the SRWebSocket.h file is not found.</li>
  <li>How can I make the sample project recognise this file?</li>
  </ul>