iPhone libxml2 not found during build

后端 未结 2 514
无人及你
无人及你 2020-12-31 06:46

I currently got some errors with libxml2 in my iPhone project. This was working before, after making some changes in my build properties building failed. (libxml2.dylib is a

相关标签:
2条回答
  • 2020-12-31 07:12
    • 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.

    0 讨论(0)
  • 2020-12-31 07:28

    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.

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