json-framework error in iPhone static library
Posted
by David Beck
on Stack Overflow
See other posts from Stack Overflow
or by David Beck
Published on 2010-03-07T22:28:08Z
Indexed on
2010/03/07
23:11 UTC
Read the original article
Hit count: 397
I have an iPhone app that uses the json-framework. I moved some of the code, including the json-framework source, from the main project to a static library. When I did this, the json-framework stopped getting compiled into the binary (double checked with class dump). This causes a nasty error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString JSONValue]: unrecognized selector sent to instance 0x43897f0'
Everything else in the static library continues to function properly.
© Stack Overflow or respective owner