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

后端 未结 14 2231
半阙折子戏
半阙折子戏 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

提交回复
热议问题