Problem Getting Application to Launch Using Debugger
Problem Getting Application to Launch Using Debugger
- Subject: Problem Getting Application to Launch Using Debugger
- From: Crazy Joe <email@hidden>
- Date: Wed, 9 Dec 2009 22:51:54 -0700
I'm working with a Cocoa app compiling with gcc 4.0 in Xcode 3.2.1. Both the debug and the release builds launch fine from the Finder, but the app does not launch through the debugger. The app's icon appears in the doc, but the app just hangs in the debugger.
After Running..., the debugger console mysteriously reports two sequential occurrences of "[NSCFArray _getCString:maxLength:encoding:]: unrecognized selector sent to instance", but with no immediate indication as to where. I've stepped through hundreds of lines of assembler code in multiple debug sessions to get a better idea where.
The debugger console doesn't consistently report much of anything, and offers variable messages depending on what I step into and/or over confusing things a bit. "Current language: auto; currently objective-c". "Warning - No location found for "MainController.m:31" appeared once. When I step into _NSInitializeAppContext, at some point the debugger starts spitting out "Unable to disassemble objc_assign_strongCast" to the console.
The is how far I got down the call stack when I ran out of aspirin:
_RegisterApplication
GetCurrentProcess
GetSystemUIMode
IsMenuBarVisible
_NSInitializeAppContext
[NSApplication init]
[NSApplication sharedApplication]
main
I've cleaned all and restarted Xcode to no avail as well.
This app was debugging fine under Xcode 2.5 and 10.5.x. And unfortunately, I had to change the code in now countless places just to get it to build in 3.2.1 and 10.6, that it'd be rather difficult to trace back what change that I made which might be causing this problem, if in fact that's even the case.
One area I'm suspecting the problem might light is with a resources/nib file??? I played with them some, but was able to back them out with the problem still occurring though. Or, perhaps it's a problem with some setting somewhere???
Why the release and debug apps launch fine from the finder and not from within the debugger seems a bit odd to me, especially when the debugger hangs.
Can someone point me in some direction here?
Thanks. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden