今天运行了下程序 直接报红-- 'libxml/tree.h' file not found
看看Header Search Paths 为
'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/libxml2'
看看Base SDK 为 ios 6.1
于是把Header Search Paths 该为
'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/libxml2'
问题解决,但是有一个问题,如果这样做的话每升级一次版本就要修改一次。
正确做法因该是Header Search Paths 该为 ${SDKROOT}/usr/include/libxml2
文章详细介绍了在iOS开发过程中遇到'libxml/tree.h'文件未找到的问题,通过调整HeaderSearchPaths路径成功解决问题,并指出每次Xcode版本更新都需要相应修改这一路径的局限性,提出了正确的解决方案——将HeaderSearchPaths设置为${SDKROOT}

被折叠的 条评论
为什么被折叠?



