0

What I was doing is as follows.. 1) First I used the OAConsumer library and Base64 library in my project and I made a cocoa touch static library of it along with my own classes.. 2)When I use this library in my project , it is not able to link the NSData + BAse64.m file

I get the following error and it crashes ..

-[NSConcreteData base64EncodedString] : Unrecognised selector sent to instance 0x158250

This question is similar to the following question .. Categories in Objective-C aren't working

I tried the solutions in it ... but didn't work ...

Community
  • 1
  • 1
Subbu
  • 2,063
  • 4
  • 29
  • 42
  • What is your question? `NSData` does not have a `-base64EncodedString:` method, so it makes sense that you'd get an Unrecognized selector exception. – user1118321 Jan 21 '13 at 06:44
  • i have edited the question ...i using Base64 library also – Subbu Jan 21 '13 at 06:45
  • You should run your app in the debugger and set it to break on Objective-C exceptions (on throw). When it stops, check to see what object is getting sent the `base64EncodedString` method. That should point you to where and possibly what the problem is. – user1118321 Jan 21 '13 at 06:48
  • the program crashed hard...and its unable to recover .. – Subbu Jan 21 '13 at 07:09
  • 1
    Add an exception breakpoint and try again: http://stackoverflow.com/questions/1163981/how-to-add-a-breakpoint-to-objc-exception-throw – trojanfoe Jan 21 '13 at 08:14

0 Answers0