libxml/tree.h no such file or directory

后端 未结 22 2885
刺人心
刺人心 2020-11-27 10:47

I am getting following errors.

libxml/tree.h no such file or directory

I have already added libxml2.dylib to my pro

22条回答
  •  眼角桃花
    2020-11-27 11:04

    I solved in three steps inXcode 8.0 + Unit Test Project

    1) I added libxml file to the Build Phases.follow this link

    2) I added Other Linker Flags as -ObjC (For both project and test project targets)

    3) I setup Header Search Path as "${SDKROOT}/usr/include/libxml2" (Don't forget double quote in either side) (For both project and test project targets)

    One of them will solve the issue. If not you have to apply all three of the above.

提交回复
热议问题