iOS开发之libxml/tree.h' file not found

下载别人程序并运行,直接报红-- 'libxml/tree.h' file not found
看看Header Search Paths 为
** '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.3.sdk/usr/include/libxml2**'

于是把Header Search Paths 该为
** '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/libxml2**'

问题解决,但是有一个问题,如果这样做的话每升级一次版本就要修改一次。
正确做法因该是**Header Search Paths 该为 **${SDKROOT}/usr/include/libxml2

你可能感兴趣的:(iOS开发之libxml/tree.h' file not found)