I built a project with Unity, then merely added NSLog(@“NSLog Test”); inside the applicationDidFinishLaunching method of the iPhone_target2AppDelegate.m file.
…after building and running the App , the text “NSLog Test” never shows up in the console…
What could be the problem?
I checked MainWindow.xib and the connection seems ok between File’s Owner and iPhone_target2AppDelegate.
Has anyone encountered that issue?
that is quite annoying since this is the place where I should put my code to register for remote notifications with the registerForRemoteNotificationTypes method.
Its being called if you use no extension that categorizes the AppController like OpenFeint and alike that overload the applicationDidFinishLaunching for their own purpose without calling the one in the original application unhappily
I got mine working in the end by moving the code that flurry says to add into the applicationDidFinishLaunching (which was in iPhone_target2AppDelegate.m) and instead put it into the function applicationDidFinishLaunchingWithOptions (which is in AppController.mm)
I’m still waiting for the data to show up on flurry, but before the move, the console was blank, after the move, flurry chirps like a bird each time i was sending logs, so I’m fairly confident that its working now.
Just thought I’d post this up in case anyone else finds this post with the same issue.