首先匯入libxml2.dylib,具體怎麼匯入跟匯入frameworks一樣
然後在Build Setting中的Header Search Paths to: 新增 ${SDK_DIR}/usr/include/libxml2
${SDK_DIR}/usr/include/libxml2