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 with the same project I get the same error.
I have configured the header search paths with /usr/include/libxml2
I also tried $(SDKROOT) / usr/include/libxml2
and it didn't work.
I have also put Other Linker Flag with lxml2
Include the following in your header search path and you should be immune to any weirdness Apple does with their Xcode updates:
In your question, you have a space between the
/
andusr
. Perhaps this is a typo, but the path is:Just confirm that is the path in the target build settings:
You can also verify that the path exists on your file system.