I know how to share a text viz twitter,i used this code to integrate my text to twitter,i had sucessfully done in xcode3.2,but now i use the xcode4.I got 60 errors when i put this code to my app.Error says
/Users/admin/Downloads/ELTouchBible/Classes/MGTwitterLibXMLParser.h:10:30: error: libxml/xmlreader.h: No such file or directory
/Users/admin/Downloads/ELTouchBible/Classes/MGTwitterLibXMLParser.m:50: error: 'XML_PARSE_NOBLANKS' undeclared (first use in this functio
There are lots of error like this.How to solve this errors?
Thanks in advance.
To use libxml in your Xcode 4 project, you need to do three things:
1) Add
libxml2.dylibas a framework2) Look for the build setting Header Search Paths, and add
/usr/include/libxml23)
#include <libxml/parser.h>(or whichever functions you need) in your source file(s).To perform steps 1 and 2, you should select the root of your project in the left files pane. Frameworks can be added in on the Summary tab, and the build settings are on the Build Settings tab.