LoginSignup
10
8

More than 5 years have passed since last update.

NSUnknownKeyException this class is not key value coding-compliant for the keyでドハまりした

Posted at

XIBからStoryboardへの移行中に、下記のようなエラーが発生

2013-07-17 15:43:32.181 Application Name[1647:907] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x1d5cd2d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key foobar.'

原因

Storyboardに追加したオブジェクトと、.hファイルのオブジェクト名の接続を行った後に削除を行っても、Storyboardに残ってしまうため。

対応

Storyboardファイルの上で右クリック > Open As > Source Code

<outlet property="foobar" destination="2f6-ES-Nq2" id="2s4-Gj-Z2l"/>

を削除

10
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
8