Note that there are some explanatory texts on larger screens.

plurals
  1. POObjective C Exception thrown in main method
    text
    copied!<p>I set an exception breakpoint after my app continued crashing before it would execute any of my code. I don't know what's wrong. I printed out the stack trace, but the only decipherable portion of the stack trace is that the problem is in the line: <code>return UIApplicationMain(argc, argv, nil, NSStringFromClass([TACGridAppDelegate class]));</code></p> <pre><code>Here is the stack trace: `#0 0x014b7cb4 in objc_exception_throw ()` `#1 0x013209c1 in -[NSException raise] ()` `#2 0x00a99143 in -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] ()` `#3 0x00a0ad5f in _NSSetUsingKeyValueSetter ()` `#4 0x00a0accf in -[NSObject(NSKeyValueCoding) setValue:forKey:] ()` `#5 0x00a25d78 in -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] ()` `#6 0x0035e7af in -[UIRuntimeOutletConnection connect] ()` `#7 0x013228ba in -[NSObject performSelector:] ()` `#8 0x0128b251 in -[NSArray makeObjectsPerformSelector:] ()` `#9 0x0035d303 in -[UINib instantiateWithOwner:options:] ()` `#10 0x0035eeab in -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] ()` `#11 0x00142f2f in -[UIApplication _loadMainNibFileNamed:bundle:] ()` `#12 0x0014322c in -[UIApplication _loadMainInterfaceFile] ()` `#13 0x0014281a in -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] ()` `#14 0x001514c6 in -[UIApplication handleEvent:withNewEvent:] ()` `#15 0x00151f34 in -[UIApplication sendEvent:] ()` `#16 0x0014590c in _UIApplicationHandleEvent ()` `#17 0x01b4a876 in PurpleEventCallback ()` `#18 0x012f3ff5 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()` `#19 0x01258902 in __CFRunLoopDoSource1 ()` `#20 0x012571ea in __CFRunLoopRun ()` `#21 0x01256694 in CFRunLoopRunSpecific ()` `#22 0x012565ab in CFRunLoopRunInMode ()` `#23 0x00142326 in -[UIApplication _run] ()` `#24 0x00143851 in UIApplicationMain ()` `#25 0x0000215a in main (argc=1, argv=0xbffff610) at /Users/MasonSilber/Desktop/Programming Stuff/iOS Programming/XCode 4/TACGrid/TACGrid/main.m:16` </code></pre> <p>Any help is appreciated. Thanks!</p> <p><strong>EDIT:</strong> Okay, I've narrowed down the problem. It throws this exception whenever I set TACGridViewController as the Main Interface in the iPad deployment info. Does that help?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload