The error message -[AppDelegate window]: unrecognized selector sent to instance indicates that your appDelegate class is missing the required UIWindow *window property. Your appDelegate header file should look like this at a minimum:
@interface AnyNameAppDelegate : UIResponder
@property (strong, nonatomic) UIWindow *window;
@end