*Update: This now doesn’t work on either the iPhone or the Simulator. After I ran a clean build I got the error on the simulator:
Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/572536B3-5E7D-4F2B-8D80-4345412DCF10/Quotes.app> (loaded)' with name 'RootViewController'
I have inspected the MainWindow.xib file and there is no mention of the RootViewController. I renamed this much earlier to CategoryViewController.
Here is my CategoryViewController at the request of @megger:
#import <UIKit/UIKit.h>
#import "Category.h"
#import "AddSubjectController.h"
#import "SubjectViewController.h"
#import "SBTableAlert.h"
@class SubjectViewController;
@class AddSubjectController;
@class SearchViewController;
@interface CategoryViewController : UITableViewController <UIAlertViewDelegate, SBTableAlertDelegate, SBTableAlertDataSource> {
NSMutableArray *categories;
NSMutableArray *allCategories;
NSMutableArray *subjects;
NSMutableArray *allSubjects;
AddSubjectController *addSubController;
SubjectViewController *subViewController;
SearchViewController *svc;
NSIndexPath* checkedIndexPath;
}
@property (nonatomic, retain) NSMutableArray *categories;
@property (nonatomic, retain) NSMutableArray *allCategories;
@property (nonatomic, retain) Subject *selectedSubject;
@property (nonatomic, retain) Quote *selectedQuote;
@property (nonatomic, retain) NSMutableArray *allSubjects;
@property (nonatomic, retain) NSMutableArray *subjects;
@property (nonatomic,assign) QuoteMapViewController *qmv;
@property (nonatomic,assign) SearchViewController *svc;
@property (nonatomic, assign) NSInteger mySection;
@property (nonatomic, assign) NSInteger myRow;
@property (nonatomic, retain) NSIndexPath* checkedIndexPath;
@end
(1) Use a text searcher like BBEdit or EasyFind to search your project folder for “RootViewController”. It’s there somewhere. For example, if you have a class called RootViewController and you instantiate it with alloc-init or in some other way that fails to specify a nib, it will look for a nib called RootViewController.
(2) What was the last time you did a Clean All on this project? I think it’s time to do one. There may be cruft in your built app, and only a Clean can get it out of there. See my advice here: How to Empty Caches and Clean All Targets Xcode 4