this class is not key value coding-compliant for the key storyboardName

2.3k Views Asked by At

My app crashes on launch with the following error:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key storyboardName.'

1

There are 1 best solutions below

1
On

This normally happens when you previously had an IBOutlet connection from your storyboard scene to it's corresponding viewController and at some point you removed the outlet from the scene or viewController and did not remove the connection. Hence the error.

Either reconnect it or remove the connection completely (in code and on the storyboard )