Silviu St
Silviu St

Reputation: 1842

Why Today Notification Widget crashes at startup?

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

Answers (2)

simina_gb
simina_gb

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

Christopher Pickslay
Christopher Pickslay

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

Related Questions