iPhone libxml2 not found during build

无人久伴 提交于 2019-11-30 08:32:22
J0S

Add ${SDKROOT}/usr/include/libxml2 as a header search path instead of only ${SDKROOT}.

Watch out that you all build targets that need libxml get the extra search path. If you add the path to your project's build settings, all its targets will inherit it and there shouldn't be a problem.

  • Add libxml2.dylib in Build Phases.
  • Add TFHpple.m, TFHppleElement.m, XpathQuery.m to Build Phases (Compile Sources).
  • Add
    Other Linker Flags: -lxml2 
    Header Search Paths: ${SDK_DIR}/usr/include/libxml2

in PROJECT --> Build Phases and in TARGETS --> Build Phases.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!