title: Libxml in a library for ios
body: <p>I have created a cocoa touch static library that contains functionality that I want to include in several apps. This library is linked to libxml and I have the header search path /usr/include/libxml2. The library builds correctly.</p>
  
  <p>I include this library in another xcode project as a reference (by dragging the library xcodeproj file into my app xcode project. I also setup the target to have the library as a direct dependency, setup the header search path to include /usr/include/libxml2, and add libxml2.dylib in the frameworks.</p>
  
  <p>The problem is, when I try to build the project is has a build error:</p>
  
  <p>Libxml/tree.h: No such file or directory.</p>
  
  <p>I initially had this problem trying to build the library and solved it by adding the header search path and framework into the project for libxml2. </p>
  
  <p>Incidentally, i have another app that uses the library but does not use libxml, it builds and runs correctly.</p>
  
  <p>So the problem seems to be using libxml in both the app and a linked library. </p>
  
  <p>Anybody any ideas?</p>
  
  <p>Yours hopefully,
  Neil.</p>