I just installed Xcode version 4.3.1 and I get this error:
libxml / tree.h file not found
I have also installed Xcode 4.2, and
In my case, the main difficulty was that the app is composed of two projects, with the second one having several targets. It took me a while to realise that the error was occurring in one of those targets and not in the target of the main project. Then I just had to add the (in)famous $(SDKROOT)/usr/include/libxml2
in the Header Search Paths of that particular target.
I am using Xcode Version 5.0.1
LibXML2 library solved
SOLUTION!
if you have xcode 4.3.x in /Application
need ONLY add: "/usr/include/libxml2" without quote in Application TARGET -> Header search path.
for this -> double click on the line -> on little window click plus sign an write /usr/include/libxml2
nb - need also add libxml2.dylib to the framework. I use 2.2.7.3
hope help you