Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用 hpple 和 build 时,aways 显示“'libxml/tree.h' file not found”错误。
我有, set [Header Search Path] "${SDKROOT}/usr/include/libxml2" set [Other Linker Flag] value as "-lxml2"
哦,对不起,我刚刚设置了 TARGETS 的 Build Settings,忘记设置 PROJECT --> Build Settings。
第1步:目标-->在构建设置-->头文件搜索路径-->按回车键--->替换/usr/include/libxml2
/usr/include/libxml2
第2步:目标-->在构建阶段-->确认 "libxml2.dylib"框架是否存在,如果没有添加
"libxml2.dylib"
第 3 步:目标--> 在构建阶段--> 搜索libxml2.dylib然后单击添加按钮
libxml2.dylib
参考截图: