8

I have searched the net and the consensus seems to be to add ${SDK_DIR}/usr/lib/libxml2 to the 'Header Search Paths'. I have done this and I can see in the project inspector that it expands the to correct full path name. I'm still getting errors that it can't find libxml/tree.h, etc. I have also tried using just /usr/lib/libxml2. That didn't work either. In both cases when I look at the command line generated by Xcode I don't see a -I with my Header Search Paths.

MyTallest
  • 305
  • 1
  • 2
  • 9
  • Xcode 4 is still under NDA - not for much longer hopefully - until then though you should not be discussing it in public forums. – Paul R Feb 08 '11 at 20:56
  • I was able to fix the error by adding `"$(SDKROOT)/usr/include/libxml2"` (including double quotes) in **Targets > Build Settings > Header Search Paths** – Hemang Jan 22 '13 at 05:57

2 Answers2

25

Try adding $SDK_DIR/usr/include/libxml2 to Header Search Paths.

Phil Loden
  • 1,394
  • 1
  • 15
  • 15
0

See https://devforums.apple.com/message/379137#379137

Jano
  • 62,815
  • 21
  • 164
  • 192