LoginSignup
1
1

More than 5 years have passed since last update.

Xcode5のstoryboard内でUIKeyCommandエラーの対処法

Posted at

既存のプロジェクトからstoryboardにあるオブジェクトをコピペして、新規プロジェクトに貼付けたら以下のエラーが出た。

'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named UIKeyCommand'

調べたところ、iOS7からUIKeyCommandというクラスが追加されたらしい。
よく見たらstoryboard内で以下のような警告も。

Main_iPhone.storyboard: Key Commands on View Controller on iOS versions prior to 7.0

storyboardをテキストベースで表示してみると、<keyCommands>というタグを見つけたので全て削除。
結果、問題なく動くようになった。

1
1
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
1
1