What are the standard arguments in the main file. I think I have set the wrong standard arguments in the main file, and need to change them back. I think the problem is the nil and nil in the UIApplicationMain arguments.
Here is the code I have:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
Error code:
Attaching to process 1420.
2011-09-02 14:33:04.440 HypnoTime[1420:207] *** Assertion failure in UIApplicationMain(), /SourceCache/UIKit_Sim/UIKit-1448.89/UIApplication.m:1359
2011-09-02 14:33:04.588 HypnoTime[1420:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to instantiate the UIApplication delegate instance. No class named AppDelegate is loaded.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00dc15a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f15313 objc_exception_throw + 44
2 CoreFoundation 0x00d79ef8 +[NSException raise:format:arguments:] + 136
3 Foundation 0x00816341 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 101
4 UIKit 0x00021bcd UIApplicationMain + 962
5 HypnoTime 0x000027cf main + 127
6 HypnoTime 0x00002745 start + 53
7 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
Current language: auto; currently objective-c
(gdb)