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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With