Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lexk

macrumors newbie
Original poster
Aug 8, 2010
17
0
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ViewController" nib but the view outlet was not set.'

I'm getting this error thrown at me when I try and run my app in the simulator and I'm a little thrown on how to go about fixing it.
I'm working with storyboards as well if that's any help.

I'm fairly new at all this so any advice on how to overcome this would be greatly appreciated! :)
 

Sonnestah

macrumors regular
Mar 2, 2013
152
0
A few suggestions:

1 - Try a clean

2 - Under the info tab in the inspector, check if the name matches

3 - Check your code for typos
 

Sonnestah

macrumors regular
Mar 2, 2013
152
0
you mentioned you're using storyboard, select your view controller and check the connections inspector for the view outlet, is it linked?
 

lexk

macrumors newbie
Original poster
Aug 8, 2010
17
0
you mentioned you're using storyboard, select your view controller and check the connections inspector for the view outlet, is it linked?

As far as I can tell they are connected although greyed out and uneditable.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
What do you mean they? There is only one outlet named "view" for each view controller. This is the same as "self.view" that you can access in code.

Can you show us a screen shot that proves that the "view" outlet is set?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.