15

I'm getting an intermittent crash using Storyboards in iOS 5. Every so often, I get a SIGABRT when I try to instantiate a new object with a view controller from my Storyboard. It seems like a very generic error, but I can't find anyone else that's seen this. Thanks for your help!

SectionLandscapeViewController *sectionViewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil] instantiateViewControllerWithIdentifier:@"SectionLandscapeViewController"];

And the crash...

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIProxyObject 0xa0fba20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key sceneViewController.'
user1360726
  • 231
  • 3
  • 5

4 Answers4

4

Try to use storyboard ID that different from real UIViewController class name.

Fitsyu
  • 860
  • 11
  • 19
1

Open your .xib file for this controller and right click on "File Owner" and check if you have connected any wrong property or outlets. You will find a small yellow icon on the right side of outlet if it is a wrong one. Just remove that and try.

1

I was able to fix this by doing a "Reset Content and Settings" in the IPhone Simulator.

andrewmclean
  • 427
  • 3
  • 15
0

Running it in simulator:

Try Simulator -> Reset Content and Settings

On Device

Try deleting and reinstalling the app

royherma
  • 4,095
  • 1
  • 31
  • 42