title: iPhone libxml2 not found during build
body: <p>I currently got some errors with libxml2 in my iPhone project. This was working before, after making some changes in my build properties building failed. (libxml2.dylib is added in the build phases)</p>
  
  <pre><code>#import &lt;libxml/tree.h&gt;
  #import &lt;libxml/parser.h&gt;
  #import &lt;libxml/xmlstring.h&gt;
  #import &lt;libxml/xpath.h&gt;
  #import &lt;libxml/xpathInternals.h&gt;
  </code></pre>
  
  <p>I've added the following items to the Build Settings:</p>
  
  <pre><code>Other Linker Flags: -lxml2
  Header Search Paths: /usr/include/libxml2
  </code></pre>
  
  <p>I've tried adding them to the project and targets (at the same time, and switching between them) without any difference. </p>
  
  <p>I also tried adding the following to the Header Search Path:</p>
  
  <pre><code>${SDKROOT}
  ${SDK_DIR}
  </code></pre>
  
  <p>Both with no result.</p>
  
  <p>Building fails for:
  iPhone device
  iPhone and iPad emulator</p>
  
  <p>Anyone have an idea?</p>
  
  <p>I'm using the GData Objective-C client library: <a href="http://code.google.com/p/gdata-objectivec-client/" rel="noreferrer">http://code.google.com/p/gdata-objectivec-client/</a>
  I'm compiling the source files directly into my project and followed all the steps that are given in the wiki. When manually importing the libxml headers again, XCode suggests the following:</p>
  
  <pre><code>#import &lt;libxml2/libxml/tree.h&gt;
  </code></pre>
  
  <p>Which doesn't work either.</p>