- Home /
App stuck on splash screen. Exception on applicationDidFinishLaunching. Xcode 4.5 and Unity 3.5.6
Thanks for taking the time to read! I've been all over the internet with no luck so far so I made an account in hopes someone might know the answer.
A mobile app for my company stopped working when the provisioning profiles went out. The project is old (about 2 years ago) and needed to be upgraded to make a new build as it seems to old XCode projects and Xcode 4.5 don't get along.
After upgrading the project runs fine in the editor. However when I try to put on my iPad (4.3 iOS) I get the following issue in Xcode that causes the app to become hung on the splash screen:
 2012-12-04 09:19:07.881 epp13[254:607] -> registered mono modules 0xad5e18
 2012-12-04 09:19:07.954 epp13[254:607] -[AppController applicationDidFinishLaunching:]: unrecognized selector sent to instance 0x1561610
 2012-12-04 09:19:08.242 epp13[254:607] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppController applicationDidFinishLaunching:]: unrecognized selector sent to instance 0x1561610'
 *** Call stack at first throw:
 (
     0   CoreFoundation                      0x3468464f __exceptionPreprocess + 114
     1   libobjc.A.dylib                     0x36b77c5d objc_exception_throw + 24
     2   CoreFoundation                      0x346881bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 102
     3   CoreFoundation                      0x346878ad -[NSObject(NSObject) forwardInvocation:] + 36
     4   CoreFoundation                      0x3468768d ___forwarding___ + 576
     5   CoreFoundation                      0x345fe180 _CF_forwarding_prep_0 + 48
     6   epp13                               0x00555cfc -[AppController(PushAdditions) application:didFinishLaunchingWithOptions:] + 192
     7   UIKit                               0x34c2d821 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 772
     8   UIKit                               0x34c27b65 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 272
     9   UIKit                               0x34bfc7d7 -[UIApplication handleEvent:withNewEvent:] + 1114
     10  UIKit                               0x34bfc215 -[UIApplication sendEvent:] + 44
     11  UIKit                               0x34bfbc53 _UIApplicationHandleEvent + 5090
     12  GraphicsServices                    0x33d54e77 PurpleEventCallback + 666
     13  CoreFoundation                      0x3465ba97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
     14  CoreFoundation                      0x3465d83f __CFRunLoopDoSource1 + 166
     15  CoreFoundation                      0x3465e60d __CFRunLoopRun + 520
     16  CoreFoundation                      0x345eeec3 CFRunLoopRunSpecific + 230
     17  CoreFoundation                      0x345eedcb CFRunLoopRunInMode + 58
     18  UIKit                               0x34c26d49 -[UIApplication _run] + 372
     19  UIKit                               0x34c24807 UIApplicationMain + 670
     20  epp13                               0x00008cb0 main + 140
     21  epp13                               0x00003e18 start + 40
 )
 terminate called after throwing an instance of 'NSException'
The plugins currently on the projects are Etcetera, iTween, ObjectiveJS, and XMLParser.
Any ideas? Something that might help that I didn't mention? Any help is greatly appreciated.
Answer by Paranormal_Steve · Dec 04, 2012 at 04:56 PM
Ended up finally figuring it out. I went to the AppControllerPushAdditions.m file for Etcetera and found the lines:
 - (BOOL)application:(UIApplication*)app didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
 {
     // handle remote notification
     NSDictionary *dict = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
     if( dict )
         [self performSelector:@selector(handleNotification:) withObject:dict afterDelay:5];
     
     // let Unity take it from here
     [self applicationshLaunching:app];
     
     return YES;
 }
By changing [self applicationshLaunching:app]; to [self startUnity:app]; the app runs again. Hope this helps somebody in the future!
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                