My code was working fine for days and weeks of code changes and running on my iPhone 5.0 simulator until I cleaned it.
Now it dies on this line [window addSubview:self.viewController.view];
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[self.window addSubview:self.viewController.view]; // dies here
[self.window makeKeyAndVisible];
return YES;
}
self.viewController exists, but self.viewController.view does not.

EDIT to add my AppDelegate.h:
#import <UIKit/UIKit.h>
@class MainMenu;
@interface yomikakiAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
MainMenu *viewController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet MainMenu *viewController;
@end
I think IB must have lost a connection somewhere, but I’m not sure how to rewire it.
I made my MainMenu.xib Referencing Outlet view be File’s Owner, but that didn’t fix it.

How can I get my viewController get its view back?
EDIT to add screenshot of Identity Inspector of my nib file:

Hello why are you doing this?
[window addSubview:self.viewController.view];Try this
[self.window addSubview:self.viewController.view];[self.window makeKeyAndVisible];return YES;The File Owner has to be linked to the View of the ViewController.