ResultsDirect / LinkedIn-iPhone

Simple framework to provide authentication and API support for LinkedIn on iPhoneOS devices.
74 stars 27 forks source link

[OAToken rd_tokenWithUserDefaultsUsingServiceProviderName:prefix:]: unrecognized selector sent to class #30

Closed uzman closed 12 years ago

uzman commented 12 years ago

hi,

i download the demo project. it runs very well.

but i tried to implement your libraries to my project. everything works great.

i have a problem when i hit to Login Button in my view. it says: [OAToken rd_tokenWithUserDefaultsUsingServiceProviderName:prefix:]: unrecognized selector sent to class

it crashes on:

im stuck, anyone can help...

sixten commented 12 years ago

This method is being added to the OAToken class (defined by the OAuthConsumer project we're incorporating) through a category that we defined. My guess is that your project either doesn't include all of the sources, or that the build settings aren't configured correctly for Xcode to be aware of the category. See this StackOverflow question for more information, and try adding -ObjC to your linker flags.

uzman commented 12 years ago

yes, you are right. thanks...