I created a new cocos2d project and copied several files from the previous project into this new project. I should have indicated that I needed a copy when requesting xCode. My AppDelegate class is AppDelegate.
I did a clean and build a new project.
My main.m looks like this
int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); [pool release]; return retVal; }
When I start a new project, I get the following error:
Unable to instantiate instance of UIApplication delegate. The class named AppDelegate is not loaded.
This error appears when
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
runs in the main.m file.
The AppDelegate class explicitly exists in my project. I was hoping that someone would be able to push me in the right direction.
source share