Search code examples
objective-ccocoaxcode4.2xcodebuildrelease-mode

OSX Application Crashing in release mode


Any pointers how can we debug an application in the release mode, its crashing even a first line it self , below is the code snippet

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application

    debugLog<<" inside app did finish launching "<<endl;

    **// here its crashing**        
    [self InitAppController];

    [AppUtil createAppMacFolder];


}

Solution

  • not sure what was the problem,
    But when i set the optimization level to 0 was working fine,

    enter image description here