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.
我在网上搜索过,共识似乎是将 ${SDK_DIR}/usr/lib/libxml2 添加到“标题搜索路径”中。我已经这样做了,我可以在项目检查器中看到它扩展了正确的完整路径名。我仍然收到找不到 libxml/tree.h 等的错误。我也尝试过仅使用 /usr/lib/libxml2。那也没有用。在这两种情况下,当我查看由 Xcode 生成的命令行时,我都没有看到带有我的标题搜索路径的 -I。
尝试将 $SDK_DIR/usr/include/libxml2 添加到标题搜索路径。
见https://devforums.apple.com/message/379137#379137