x


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 http://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 http://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

more ▼

asked May 21 '12 at 08:02 PM

TheGeoff gravatar image

TheGeoff
1 4 5 5

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 instead 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.

May 21 '12 at 09:30 PM dannyskim
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered May 22 '12 at 08:08 PM

TheGeoff gravatar image

TheGeoff
1 4 5 5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1958
x591
x64
x7
x6

asked: May 21 '12 at 08:02 PM

Seen: 943 times

Last Updated: May 22 '12 at 08:08 PM