wordnik/wordkit — Issue #9: runtime error looking for a NSString addition
Author: gingersman
Created: 2011-10-25 22:52:15+00:00
State: open

I just installed the iOS framework to my project and I created a WNClient and a WNRandomWordRequest to retrieve a random word. The code compiles fine.

At runtime it seems that the method wn_stringByAddingURIPercentEscapes does not exist. I suppose is an addition to the NSString class that is missing. What did I do wrong?

Here is the error I got

[__NSCFString wn_stringByAddingURIPercentEscapes]: unrecognized selector sent to instance 0x84a1c90
2011-10-25 17:47:28.824 Cocos2DTest[4885:10d03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString wn_stringByAddingURIPercentEscapes]: unrecognized selector sent to instance 0x84a1c90'

Thanks a lot!