- Home /
Weird Crash after Upgrading to 3.5.2
I started working with my project after upgrading to Xcode 4.3.2 and Unity 3.5.2 and I'm having a really weird crash. When building and running I get this:
-> registered mono modules 0xd3f270
-[AppController applicationDidFinishLaunching:]: unrecognized selector sent to instance 0x1d53c10
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppController applicationDidFinishLaunching:]: unrecognized selector sent to instance 0x1d53c10'
It looks like UIApplicationMain(argc, argv, nil, @"AppController");
is calling the deprecated :
-(void) applicationDidFinishLaunching:(UIApplication*)application**
instead of: - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
I verified this by copying the applicationDidFinishLaunching method from AppController.mm that I had in and old build and remmed out the didFinishLaunchingWithOptions method that was already there. The game launched and worked but having to hand edit the AppController.mm file makes me really nervous about what else might be wrong.
Does anybody have any clue what might be going on? This is a fairly mature project that had been working. I have the SDK set to the latest 5.1 and the target was set at 4.1 but I changed that to 4.3 to test (no difference).
Thanks,
Geoff
Only thing I can think of off the type of my head is that XCode is using your old project that you built. When you 'Build & Run', you could be pressing the 'Append' button ins$$anonymous$$d of 'Replace,' which would purposefully keep your old appcontroller file. I, at the time when I upgarded, didn't know of any easy way of getting around this so I replaced my existing XCode project and reintegrated all my code changes and plug-ins.
Answer by TheGeoff · May 22, 2012 at 08:08 PM
Turns out I way having Plugin Problems. I've got several Prime31 plugins I've been updating over the last few months. I must have ended up with some cruft in there. I deleted all the Plugin related files and re-imported them from the latest. Working great now. That'll go on my "Troubleshooting Weird Issues List.