2013-01-08 16:02:55.341 TodayApp[95470:14003] -[__NSCFBoolean objectForKey:]: unrecognized selector sent to instance 0x9b4964
2013-01-08 16:02:55.342 TodayApp[95470:14003] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean objectForKey:]: unrecognized selector sent to instance 0x9b4964'
*** First throw call stack:
(0x883012 0x20a2e7e 0x90e4bd 0x872bbc 0x87294e 0x7afc 0x234353f 0x2355014 0x23457d5 0x829af5 0x828f44 0x828e1b 0x2dcf7e3 0x2dcf668 0xfea65c 0x2679 0x2585)
libc++abi.dylib: terminate called throwing an exception
私のアプリには、ほぼ 30 のクラスがあります。特定の VC に入ると上記のエラーが発生しますが、10 回に 1 回しか発生しないため、再現する方法がありません。これを効率的にデバッグするにはどうすればよいですか? 通常、私は NSLog を使用して段階的に「デバッグ」しますが、より効率的な方法で私を啓発できると確信しています。
更新:これは問題のある行です:NSString *card = [NSString stringWithFormat:@"%@-%@",[[UserAccount sharedInstance] cardNumber],[tokenData objectForKey:@"CardPhoneToken"]];
私はまだそれの何が問題なのかを理解しようとしています.