Reputation: 1842
Today Notification Widget launch crashes with the following error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: <__NSConcreteUUID 0x170026460> C492718F-C23C-4FC8-AE0F-ED5CE3141xxx)'
ViewDidLoad
not even gets called
Any idea why?
Upvotes: 0
Views: 500
Reputation: 36
Check if NotificationCenter.framework
is included into your project's current selected target or if there is any other framework missing.
Upvotes: 2
Reputation: 17762
It sounds like you're trying to write a nil value into a dictionary or NSUserDefaults. Your controller will be initialized before viewDidLoad
is called. Did you override the initializer?
I think you need to provide more information. Maybe post your controller code?
Upvotes: 1