在.h文件中找到需要在Build Settings中设置的东西,查找Header Search Paths,然后添加/usr/include/libxml2
随后在Build Settings中进行设置,查找Other Linker Flags,然后添加-lxml2