10

I have imported ASIHTTP files into my project and inside ASIWebPageRequest.m there is the following import:

#import <libxml/HTMLparser.h>

which is not recognized. What library should I add in order to be recognized?

adrian
  • 4,574
  • 17
  • 68
  • 119

3 Answers3

25

Go to the Project build settings (Project->Edit Project Settings->Build) and find the "Search Paths". In "Header Search Paths" add the following path:

$(SDKROOT)/usr/include/libxml2

Note, you may be missing all development headers after upgrading OS X (at least this was the case for me with Mavericks). To reinstall the command line tools run:

xcode-select --install

nylund
  • 1,105
  • 10
  • 15
Maulik
  • 19,348
  • 14
  • 82
  • 137
10

With xcode 4.5, it doesn't work. I try with /usr/include/libxml2 and it works well

tnthuong
  • 158
  • 2
  • 8
1

putting ${SDK_DIR}/usr/include/libxml2 for the "Header Search Paths" build setting worked for me.

*Info: I'm using xcode 5

Amogh Natu
  • 781
  • 1
  • 10
  • 37