1

I'm trying to add this: https://github.com/bengottlieb/Twitter-OAuth-iPhone The readme doesn't give a step by step so I just tried dragging the whole folder into my project and then when I try to compile I get a file not found error on #include

What do I do?

Curtis
  • 2,486
  • 5
  • 40
  • 44

2 Answers2

1

I found the solution, it's on the bottom of this page: http://www.cocos2d-iphone.org/forum/topic/6136

In order to get your project to compile you’ll need to first include the libxml2 Framework (right click on your project and choose Add Exisiting Frameworks).

Now right click on your project and choose ‘Get Info’. In the build tab, scroll down till you see the ‘Search Paths’ section. In the ‘Header Search Paths’ field, add ‘$(SDKROOT)/usr/include/libxml2′

Finally, expand the Twitter+OAuth group in your project and then expand theMGTwitterEngine group. Open MGTwitterEngine.m and alter #define USE_LBXML 0 to #define USE_LIBXML 1.

Curtis
  • 2,486
  • 5
  • 40
  • 44
0

you will have to add the following frameworks libxml And edit the header search path in the project settings to include

"$(SDK_DIR)"/usr/include/libxml2

For further info please read the following LibXML2.dylib and Xcode4

Community
  • 1
  • 1
Omar Abdelhafith
  • 21,163
  • 5
  • 52
  • 56
  • Ok it took me a long time but I figured out how to add that header search path. I still get the same error though. – Curtis May 31 '12 at 19:15
  • $(SDKROOT)/usr/include/libxml2 – Curtis May 31 '12 at 19:30
  • Ok that worked now I get the error "expected a type" on - (int)storeInKeychain:(SecKeychainRef)keychain appName:(NSString *)name serviceProviderName:(NSString *)provider; – Curtis May 31 '12 at 19:32