Right now project is using MainWindow.xib in App delegate class as main nib file. It has this code in main.m file
int main(int argc, char *argv[]) { NSAutorelea
Replace the last argument (nil) of the UIApplicationMain() function with the name of the app delegate class. It's generally @"AppDelegate" by default.
nil
UIApplicationMain()
@"AppDelegate"