I've dealt with this error before (unrecognized selector sent to instance
) and it makes sense to me but in this particular circumstance I'm confused on where to look inside the application. If you fire up the app it doesn't matter what you do, the app will crash after 10 seconds. There are a slew json calls made in the background so I assume that the error is happening somewhere within those calls but breakpointing every code statement block will be very inefficient. Is it possible to get a stack trace for this? If not, what's the best way to go about resolving this issue?
2015-05-05 15:00:27.833 MyApp[1546:195020] -[__NSCFString objectForKeyedSubscript:]: unrecognized selector sent to instance 0x17027a680
2015-05-05 15:00:32.836 MyApp[1546:195020] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString objectForKeyedSubscript:]: unrecognized selector sent to instance 0x17027a680'
*** First throw call stack:
(0x1831e82d8 0x194a140e4 0x1831ef3a4 0x1831ec154 0x1830eeccc 0x100092630 0x182bab310 0x1840cf1c4 0x184020604 0x1840101cc 0x1840d1f28 0x100288f94 0x100293db8 0x10028c2c4 0x1002965d4 0x100298248 0x19524522c 0x195244ef0)
libc++abi.dylib: terminating with uncaught exception of type NSException
In this image you can see the thread where this crash is happening. It looks like the cause may be inside of a NSNotification or something like that but I'm not sure.