Issue

The application fails to lauch with the following exception at

self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];

Switching to process 11779 thread 0x2e03]

sharedlibrary apply-load-rules all


2012-01-27 13:12:24.752 DesiZindagi[785:207] *** -[MyWindow
setRootViewController:]: unrecognized selector sent to instance 0x14d9f0


2012-01-27 13:12:24.809 DesiZindagi[785:207] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -[MyWindow
setRootViewController:]: unrecognized selector sent to instance
0x14d9f0'


2012-01-27 13:12:24.836 DesiZindagi[785:207] Stack: (


    861696817,


    860329709,


    861700631,

 

Resolution

This issue happens when using the iOS SDK 3.1.3 or below since the root view controller is not defined as a proprerty in the verision of SDK, so replace

self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];

Replace with

     [self.window addSubview:self.tabBarController.view];