Search code examples
ios4xcode4

Terminating app due to uncaught exception


I am getting the following error when i start my app on simulator

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'RootViewController''

Please tell me how i can fix this.


Solution

  • you've probably renamed or removed RootViewController, and your MainWindow.xib is still looking for it.

    have a look on this SO question: NSInternalInconsistencyException on RootViewController

    if you are still stuck a quick Google of "nsinternalinconsistencyexception rootviewcontroller" may shed some light