Search code examples
iphonexcodeinstallationmgtwitterengine

How to setup MGTwitterEngine


Just downloaded from github ... tried to build the xcode project and got over a hundred errors. TouchJSON, OAuthConsumer and yajl folders don't even exist (which looks like the problem).

Did I pooch something? What do I need to do to recover?

Thanks


Solution

  • Its all in there so that you have many possible ways to consume the responses. It is a pain in the butt to just grab and try to go if you don't know what to expect. The easiest way to get it all up and running (if you aren't going to use a third party library and simply use native xml parsing) is to simply remove the files that reference them. Just delete any file that has "TouchJSON" or "YAJL" in it's filename. You will have to get the OAuth lib since twitter is killing basic auth next month. Brad's post above has a link to that. If you want to use the JSON versions, be sure to set the define statements YAJL_AVAILABLE or TOUCHJSON_AVAILABLE to 1 so that MGTwitterengine knows to use it.