Please help me with error object cannot be nil (key: kCLConnectionMessageNameKey)"

I have made an app, and Im only receiving this error recently, so I don't know whats going on:

Thread 1: "*** -[__NSDictionaryM __setObject:forKey:]: object cannot be nil (key: kCLConnectionMessageNameKey)"

Accepted Reply

Hi eskimo! I actually fixed the error by using breapoints. Here's how I did it:

First I went to the breakpoint menu and clicked add, then I added an exception break point and other stuff. i easily located the issue after that

Add a Comment

Replies

This means that you’re trying to add an object to an NSDictionary, with the key kCLConnectionMessageNameKey, but the object itself is nil.

Are you seeing this locally when you run the app from Xcode? Or are you seeing the problem in crash reports coming in from the field?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi eskimo! I actually fixed the error by using breapoints. Here's how I did it:

First I went to the breakpoint menu and clicked add, then I added an exception break point and other stuff. i easily located the issue after that

Add a Comment