2

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

2 Answers 2

2

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'
2
  • Read the 'Install' & 'Get Started' section. After installation, you should create a Podfile with two 'pods', one for MWFeedParser, one for tidy-html5. After running pod install, it will generate a xcworkspace file (instead of xcproject) which will first build the pods and then your project.
    – asgoth
    Mar 6, 2014 at 12:14
  • Then it is even simpler, just use pod CXFeedParser
    – asgoth
    Mar 6, 2014 at 12:22
2

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.

2
  • ehmm, that was my original answer: Simple solution is to include its source in your project. Well, glad it's solved.
    – asgoth
    Mar 13, 2014 at 11:47
  • By the way @asgoth , Yes,you indeed helped me.. but that time i didn't get your point. After doing researching i found it.
    – Vizllx
    Mar 13, 2014 at 12:14

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.