我读了libxml2在XCode4中可用的地方。但是,运行Product> Profile时出现很多错误。 Adhoc和Debug的当前Header Search Paths
设置为:/usr/include/libxml2
豹子里的libxml2没有解决?
但是,当我在Snow Leopard中浏览此物理路径时,那里没有libxml2。下面是一个简单的错误:
*:No such file or directory
Libxml/tree.h: No such file or directory.
'*' undeclared here (not in a function)
'XML_ELEMENT_NODE' undeclared here (not in a function)
'*' undeclared here (not in a function)
'XML_ATTRIBUTE_NODE' undeclared here (not in a function)
您使用的是什么版本的XCode?可能是这个问题。而对于iPhone至少它不是内置的,你必须自己添加框架 – Radu 2011-04-18 14:02:34
我目前使用xcode4 – 2011-04-19 02:09:56