Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'libxml/xmlversion.h' file not found in xcode 4.2?

Tags:

i am integrating twitter application in my application my application is created in xcode 4.2 using ARC when i implemented code for twitter from this code. it worked perfectly when i just download the project & run it. when i integrate this twitter sdk code in my xcode 4.2 based application it gave me error of 'libxml/xmlreader.h' file not found i have solved it just changing header file this way #include <libxml2/libxml/xmlreader.h> but after changing this previous error was solved but than i got new error 'libxml/xmlversion.h' file not found. i tried to change header of file xmlreader.h but this file is not editable i have changed permissions for this file, too. but it didn't work. in the format like this #include <libxml2/libxml/xmlreader.h> but it doesn't work.

please tell me how to solve this error.

i have seen several question in stack overflow for some that kind of question

but they didn't work for me in xcode 4.2. please guide me.

like image 483
Hrushikesh Betai Avatar asked Jan 13 '12 12:01

Hrushikesh Betai


1 Answers

You need to put all the libxml headers on the include path. For Xcode do this by adding /usr/include/libxml2 to the header paths (that will pass -I/usr/include/libxml2 to the c compiler)

This is in the build settings tab in Search Paths -> Header Search Paths

enter image description here

like image 182
mmmmmm Avatar answered Oct 01 '22 05:10

mmmmmm