Why am I getting this “libxml/tree.h file not found” error?

后端 未结 14 2102
半阙折子戏
半阙折子戏 2020-12-12 22:15

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

相关标签:
14条回答
  • 2020-12-12 22:48

    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

    0 讨论(0)
  • 2020-12-12 22:51

    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

    0 讨论(0)
提交回复
热议问题