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.
Asked
Active
Viewed 1.2k times
8
-
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 Answers
25
Try adding $SDK_DIR/usr/include/libxml2 to Header Search Paths.

Phil Loden
- 1,394
- 1
- 15
- 15
-
-
I saw $(SDKROOT)/usr/include/libxml2 instead. Not sure what's so special about xml that it deserves a special place among all the frameworks. – user4951 Oct 10 '12 at 05:19