2

I am getting the following error

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

is it a dictionary or core data?I could not figure out where the crash is happening.Any idea?

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
abhimuralidharan
  • 5,752
  • 5
  • 46
  • 70

2 Answers2

6

This is more likely an NSDictionary error. And as it says, you are setting an object as nil.

Also, aren't you getting a line number or trace for the error?

Shamas S
  • 7,507
  • 10
  • 46
  • 58
  • This is the first line in the error. You must have copied it from the xCode console. Paste the lines underneath it, the whole chunk. Somewhere there it shows the line number as well or the class/function where it was called from. – Shamas S Mar 18 '15 at 07:39
  • 5
    just go to navigator area in that click on, from last second one and in that navigator down you will be getting + symbol click it and select on ADD Exception Breakpoint and now run it – App Developer Mar 18 '15 at 07:42
  • 1
    You are not running the code directly from xCode, right? Because it shows you the error details in binary code form. \ – Shamas S Mar 18 '15 at 07:48
  • @Sunehachowdary thanks for pointing that out. If it was an answer, I would have upvoted it. I am going to look at your other answers and upvote there :D – Shamas S Mar 18 '15 at 08:21
  • @iosDev82 i'm having doubt in my app and i have posted it but no one is answering .please can you help me....See this link http://stackoverflow.com/questions/29071612/getting-a-saved-video-from-document-directory-to-view-in-ios – App Developer Mar 18 '15 at 09:38
1

Its a NSDictionay crash because the code data can save value nil value.. its a error of trying to save nil value in NSDictionay...

Bevin Patel
  • 302
  • 3
  • 11