#import <libxml/tree.h> file not found after xcode update

让人想犯罪 __ 提交于 2019-11-28 07:12:11
Aaron Bratcher

In your build settings, add the following to your Header Search Paths:

$SDKROOT/usr/include/libxml2

For me what worked was adding this to header search path:

$(SDKROOT)/usr/include/libxml2

Slightly difference from other answer, probably to do with newer version of Xcode.

add: $SDKROOT/usr/include/libxml2

Hongli Yu

In Xcode6 and latest versions add this to your Header Search Paths:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libxml2

and remember to add the search path also to the test target.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!