解决方法:
XCODE , Project -> Edit Project Settings -> Build You need to add “/usr/include/libxml2″ to the “Header Search Paths” and you need to add “-lxml2″ to the “Other Linker Flags”.