iPhone和Ipad崩溃:原因:'***setObjectForKey:对象不能为零(键:objectid)'

abh*_*ran 0 iphone crash objective-c ipad ios

我收到以下错误

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: objectid)'
Run Code Online (Sandbox Code Playgroud)

它是字典还是核心数据?我无法弄清楚崩溃发生在哪里.任何想法?

2015-03-18 12:47:23.239 OneChannelApp[3039:6403] INFO: GoogleAnalytics 3.10 -[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:219): 2 hit(s) sent
2015-03-18 12:47:27.804 OneChannelApp[3039:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: objectid)'
*** First throw call stack:
(0x30668f83 0x3ae19ccf 0x305a48f3 0xbf357 0x32ea06df 0x3301643f 0x32f33d63 0x32f33b6d 0x32f33b05 0x32e85d59 0x32b0362b 0x32afee3b 0x32afeccd 0x32afe6df 0x32afe4ef 0x32af821d 0x30634255 0x30631bf9 0x30631f3b 0x3059cebf 0x3059cca3 0x354a2663 0x32ee914d 0x20555d 0x3b326ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
Run Code Online (Sandbox Code Playgroud)

Rei*_*ica 5

这更可能是一个NSDictionary错误.正如它所说,你正在设置一个对象nil.

此外,您是否获得错误的行号或跟踪?

  • 只需单击导航区域,从最后一秒开始,在该导航器中,您将获得+符号单击它并选择ADD异常断点并立即运行它 (4认同)