> On Sep 9, 2014, at 6:09 PM, Rick Mann <rm...@latencyzero.com> wrote: > > I downloaded Xcode 6 GM and rebuilt my app. Running in the 7.1 or 8.0 > simulator, it crashes when attempting to present a modal view controller that > worked fine when built with 5.1.1. The debugger stops at the main entry point > with this useless stack. Attempting to continue results in a SIGABRT. Adding > a C++ try/catch block around it results in the catch (...) block being called > (it is not an int or std::exception being thrown). There is nothing in the > console. Any ideas on how to proceed? > > #0 0x04142a6b in objc_exception_throw () > #1 0x0456fa11 in -[NSException raise] () > #2 0x023b2d5e in -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] () > #3 0x0230ed88 in _NSSetUsingKeyValueSetter () > #4 0x0230ed0d in -[NSObject(NSKeyValueCoding) setValue:forKey:] () > #5 0x023445f6 in -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] () > #6 0x032bf329 in -[UIRuntimeOutletConnection connect] ()
It's an Objective-C exception. You can catch it with `@try { … } @catch (NSException *e) { … }`. The crash log will show more details about the content of the exception. In Xcode, run until the debugger stops at the crash, then run `detach` in the lldb console. That will disconnect the debugger and allow the process to finish crashing, at which point the OS will collect a crash log. An exception thrown by -setValue:forUndefinedKey: is probably NSUndefinedKeyException, "[YourClassNameHere setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key YourKeyNameHere". That in turn is probably because your nib is trying to connect an outlet that your class does not define. -- Greg Parker gpar...@apple.com Runtime Wrangler _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com