首先导入libxml2.dylib,具体怎么导入跟导入frameworks一样
然后在Build Setting中的Header Search Paths to: 添加 ${SDK_DIR}/usr/include/libxml2
${SDK_DIR}/usr/include/libxml2