How to solve "LibXml/xmlreader.h Not found" error in Twitter integration in iPhone

Lakshmi picture Lakshmi · Jul 6, 2011 · Viewed 15.4k times · Source

I want to integrate Twitter in my application. I integrated related files and added libxml2 library. I included the path for it in "Header Search paths" field. When i try to build my application, I am getting errors showing that LibXml/xmlreader.h: No Such file or Directory.

Can anyone please help me in this. Thanks in Advance.

Answer

saturngod picture saturngod · Mar 7, 2012

Go to the project > Targets > Build Settings

Search Header Search Paths

Add

$(SDKROOT)/usr/include/libxml2

Make sure

Build Settings -> Always Search User Paths -> YES