Terminating app due to uncaught exception

最近、iOS開発を初めた。

良く出会うエラーが以下。

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x748e150> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key ×××.'

 

前のコネクションが残っていたのが原因だった。

storyboardのReferencing Outletsの

不要なコネクションを消せば、うまく実行できた。

 

参考:http://blog.daisukeyamashita.com/post/956.html