I am developing app using CXFeedParser. But after doing all the integration,
The File "MWImageParser.m" is generating error.
# import "tidy.h"
and "buffio.h"
not found
buffio.h and tidy.h is a part of TidyLib.
Simple solution is to include its source in your project (see include
and src
folder).
Other solution is to include a cocoapod tidy-html5 (seems to be experimental, so be careful). There is a cocoapod for MWFeedParser too.
Check the Cocoapods website for more information (if you still need).
Basically, after installation (via sudo gem install cocoapods
), you need to create the following Podfile
in your project root, with the following content:
pod 'MWFeedParser', '~> 1.0'
pod 'tidy-html5', '~> 0.0'
Then run pod install
and open the generated xcworkspace
.
Note: only Podfile
and Podfile.lock
should be added to source control. The Pods
directory can be ignored.
Edit: You are using CXFeedParser
. If you look at the CXFeedParser podspec, you'll see it has a dependency with CTidy. So remove MWFeedParser from your project and have the following Podfile:
pod 'MWFeedParser', '~> 1.0'
pod 'CTidy', '~> 0.3'
pod install
, it will generate a xcworkspace file (instead of xcproject) which will first build the pods and then your project.
There is very simply way i have found, no need to do any pod setup, just download the Tidy.h and Buffio.h from GIT Hub and include in Your project, and it will run smoothly.. Finally solved my own question.
Simple solution is to include its source in your project
. Well, glad it's solved.