Hi my app shows no errors, but when I run my app it freezes and shows the THREAD 1 SIGNAL SIGABRT, on the line beginning with 'return'. I am using Xcode 5. Also if I update Xcode to Xcode 6 will this fix the errors?
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[])
{
#autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
The debugger shows:
2014-10-18 09:43:14.726 2 Player Pong[448:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Game 0x8d24a50> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key ButtonMove.'
*** First throw call stack:
(
0 CoreFoundation 0x017ef1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0156e8e5 objc_exception_throw + 44
2 CoreFoundation 0x0187efe1 -[NSException raise] + 17
3 Foundation 0x0122ed9e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x0119b1d7 _NSSetUsingKeyValueSetter + 88
5 Foundation 0x0119a731 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 Foundation 0x011fcb0a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7 UIKit 0x004e51f4 -[UIRuntimeOutletConnection connect] + 106
8 libobjc.A.dylib 0x015807de -[NSObject performSelector:] + 62
9 CoreFoundation 0x017ea76a -[NSArray makeObjectsPerformSelector:] + 314
10 UIKit 0x004e3d4d -[UINib instantiateWithOwner:options:] + 1417
11 UIKit 0x0034c6f5 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
12 UIKit 0x0034ce9d -[UIViewController loadView] + 302
13 UIKit 0x0034d0d3 -[UIViewController loadViewIfRequired] + 78
14 UIKit 0x0034d5d9 -[UIViewController view] + 35
15 UIKit 0x0035cf89 -[UIViewController shouldAutorotate] + 36
16 UIKit 0x0035d2d1 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 297
17 UIKit 0x005fb3d5 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 2330
18 UIKit 0x003595d5 -[UIViewController presentViewController:withTransition:completion:] + 6538
19 UIKit 0x00359aef -[UIViewController presentViewController:animated:completion:] + 130
20 UIKit 0x00359b2f -[UIViewController presentModalViewController:animated:] + 56
21 UIKit 0x007a3e00 -[UIStoryboardModalSegue perform] + 271
22 UIKit 0x00792f0c -[UIStoryboardSegueTemplate _perform:] + 174
23 UIKit 0x00792f87 -[UIStoryboardSegueTemplate perform:] + 115
24 libobjc.A.dylib 0x01580880 -[NSObject performSelector:withObject:withObject:] + 77
25 UIKit 0x002303b9 -[UIApplication sendAction:to:from:forEvent:] + 108
26 UIKit 0x00230345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
27 UIKit 0x00331bd1 -[UIControl sendAction:to:forEvent:] + 66
28 UIKit 0x00331fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
29 UIKit 0x00331243 -[UIControl touchesEnded:withEvent:] + 641
30 UIKit 0x0026fddd -[UIWindow _sendTouchesForEvent:] + 852
31 UIKit 0x002709d1 -[UIWindow sendEvent:] + 1117
32 UIKit 0x002425f2 -[UIApplication sendEvent:] + 242
33 UIKit 0x0022c353 _UIApplicationHandleEventQueue + 11455
34 CoreFoundation 0x0177877f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
35 CoreFoundation 0x0177810b __CFRunLoopDoSources0 + 235
36 CoreFoundation 0x017951ae __CFRunLoopRun + 910
37 CoreFoundation 0x017949d3 CFRunLoopRunSpecific + 467
38 CoreFoundation 0x017947eb CFRunLoopRunInMode + 123
39 GraphicsServices 0x037e35ee GSEventRunModal + 192
40 GraphicsServices 0x037e342b GSEventRun + 104
41 UIKit 0x0022ef9b UIApplicationMain + 1225
42 2 Player Pong 0x0000317d main + 141
43 libdyld.dylib 0x01e36701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
u have not assigned the key in your VC the key name is ButtonMove , go to your attribute inspector remove the invalid key ButtonMove finally clean and run the project
It may be firstly, an outlet referenced to a control which has been removed, secondly, check any wrong Key/value in attribute inspector
Related
This is the message I read when I try to run my application. There are no breakpoints inside of the app that may stop it. I really don't know what to do. Help me please!!
2015-12-21 21:31:51.920 Secondo B[11523:709635] Unknown class _TtC9Secondo_B14ViewController in Interface Builder file.
2015-12-21 21:31:51.934 Secondo B[11523:709635] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7a672ed0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key passwordLabel.'
*** First throw call stack:
(
0 CoreFoundation 0x013fca84 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0322de02 objc_exception_throw + 50
2 CoreFoundation 0x013fc6a1 -[NSException raise] + 17
3 Foundation 0x0184e31c -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x017a88da _NSSetUsingKeyValueSetter + 115
5 Foundation 0x017a885f -[NSObject(NSKeyValueCoding) setValue:forKey:] + 295
6 UIKit 0x01f37845 -[UIViewController setValue:forKey:] + 85
7 Foundation 0x017dd0bd -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 384
8 UIKit 0x021aa05c -[UIRuntimeOutletConnection connect] + 132
9 libobjc.A.dylib 0x0324200c -[NSObject performSelector:] + 62
10 CoreFoundation 0x0132d571 -[NSArray makeObjectsPerformSelector:] + 273
11 UIKit 0x021a86f6 -[UINib instantiateWithOwner:options:] + 2102
12 UIKit 0x01f3f294 -[UIViewController _loadViewFromNibNamed:bundle:] + 429
13 UIKit 0x01f3fccc -[UIViewController loadView] + 189
14 UIKit 0x01f400d8 -[UIViewController loadViewIfRequired] + 154
15 UIKit 0x01f409c5 -[UIViewController view] + 35
16 UIKit 0x027d7bbc -[_UIFullscreenPresentationController _setPresentedViewController:] + 89
17 UIKit 0x01f0a3e7 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 140
18 UIKit 0x01f54e4d -[UIViewController _presentViewController:withAnimationController:completion:] + 4539
19 UIKit 0x01f5834b __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 397
20 UIKit 0x01f58690 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 493
21 UIKit 0x01f58177 -[UIViewController presentViewController:animated:completion:] + 182
22 UIKit 0x0257787f __74-[UIStoryboardPresentationSegueTemplate newDefaultPerformHandlerForSegue:]_block_invoke + 173
23 UIKit 0x02592c62 -[UIStoryboardSegue perform] + 37
24 UIKit 0x0257f1e7 -[UIStoryboardSegueTemplate _performWithDestinationViewController:sender:] + 508
25 UIKit 0x0257efbf -[UIStoryboardSegueTemplate _perform:] + 92
26 UIKit 0x01f4356b -[UIViewController performSegueWithIdentifier:sender:] + 105
27 Secondo B 0x000c4d49 _TFC9Secondo_B18ViewControllerHome13viewDidAppearfS0_FSbT_ + 409
28 Secondo B 0x000c4dbf _TToFC9Secondo_B18ViewControllerHome13viewDidAppearfS0_FSbT_ + 63
29 UIKit 0x01f46582 -[UIViewController _setViewAppearState:isAnimating:] + 774
30 UIKit 0x01f46d01 -[UIViewController __viewDidAppear:] + 166
31 UIKit 0x01f85d77 -[UINavigationController viewDidAppear:] + 227
32 UIKit 0x01f46582 -[UIViewController _setViewAppearState:isAnimating:] + 774
33 UIKit 0x01f46d01 -[UIViewController __viewDidAppear:] + 166
34 UIKit 0x01f497c9 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke + 57
35 UIKit 0x01f4778b -[UIViewController _executeAfterAppearanceBlock] + 92
36 UIKit 0x01d83a6e _runAfterCACommitDeferredBlocks + 704
37 UIKit 0x01d98d81 _cleanUpAfterCAFlushAndRunDeferredBlocks + 103
38 UIKit 0x01d98b6d __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke_2 + 124
39 CoreFoundation 0x01316d00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
40 CoreFoundation 0x0130c683 __CFRunLoopDoBlocks + 195
41 CoreFoundation 0x0130bdb8 __CFRunLoopRun + 1016
42 CoreFoundation 0x0130b706 CFRunLoopRunSpecific + 470
43 CoreFoundation 0x0130b51b CFRunLoopRunInMode + 123
44 GraphicsServices 0x05979664 GSEventRunModal + 192
45 GraphicsServices 0x059794a1 GSEventRun + 104
46 UIKit 0x01d761eb UIApplicationMain + 160
47 Secondo B 0x000c5eec main + 140
48 libdyld.dylib 0x03c9ba21 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Fix the outlet for passwordLabel. You can do this through ctr + drag from the label to the IBOutlet. Hope this helps.
This question already has an answer here:
Loaded the nib but didn't get a UITableView Exception
(1 answer)
Closed 8 years ago.
Today I ran my code that hasn't had any errors until now. Whenever someone clicks on the middle tab at the bottom the app crashes completely but all the other tabs work fine. Here's the call stack:
2014-07-01 16:27:19.848 Test Web[66180:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "lwz-qR-aDm-view-tp0-bK-7dP" nib but didn't get a UITableView.'
*** First throw call stack:
(
0 CoreFoundation 0x017f11e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x015708e5 objc_exception_throw + 44
2 CoreFoundation 0x017f0fbb +[NSException raise:format:] + 139
3 UIKit 0x0050418e -[UITableViewController loadView] + 281
4 UIKit 0x0034f0d3 -[UIViewController loadViewIfRequired] + 78
5 UIKit 0x0034f5d9 -[UIViewController view] + 35
6 UIKit 0x0038711f -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 407
7 UIKit 0x00386943 -[UITabBarController transitionFromViewController:toViewController:] + 63
8 UIKit 0x00382bed -[UITabBarController _setSelectedViewController:] + 281
9 UIKit 0x00382acc -[UITabBarController setSelectedViewController:] + 180
10 UIKit 0x0038683f -[UITabBarController _tabBarItemClicked:] + 312
11 libobjc.A.dylib 0x01582880 -[NSObject performSelector:withObject:withObject:] + 77
12 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
13 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
14 UIKit 0x004f6629 -[UITabBar _sendAction:withEvent:] + 479
15 libobjc.A.dylib 0x0158282b -[NSObject performSelector:withObject:] + 70
16 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
17 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
18 UIKit 0x00333bd1 -[UIControl sendAction:to:forEvent:] + 66
19 UIKit 0x00333fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
20 UIKit 0x00333c06 -[UIControl sendActionsForControlEvents:] + 48
21 UIKit 0x004fb23d -[UITabBar(Static) _buttonUp:] + 123
22 libobjc.A.dylib 0x01582880 -[NSObject performSelector:withObject:withObject:] + 77
23 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
24 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
25 UIKit 0x00333bd1 -[UIControl sendAction:to:forEvent:] + 66
26 UIKit 0x00333fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
27 UIKit 0x00333243 -[UIControl touchesEnded:withEvent:] + 641
28 UIKit 0x00271ddd -[UIWindow _sendTouchesForEvent:] + 852
29 UIKit 0x002729d1 -[UIWindow sendEvent:] + 1117
30 UIKit 0x002445f2 -[UIApplication sendEvent:] + 242
31 UIKit 0x0022e353 _UIApplicationHandleEventQueue + 11455
32 CoreFoundation 0x0177a77f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
33 CoreFoundation 0x0177a10b __CFRunLoopDoSources0 + 235
34 CoreFoundation 0x017971ae __CFRunLoopRun + 910
35 CoreFoundation 0x017969d3 CFRunLoopRunSpecific + 467
36 CoreFoundation 0x017967eb CFRunLoopRunInMode + 123
37 GraphicsServices 0x037e55ee GSEventRunModal + 192
38 GraphicsServices 0x037e542b GSEventRun + 104
39 UIKit 0x00230f9b UIApplicationMain + 1225
40 Test Web 0x000031fd main + 141
41 libdyld.dylib 0x01e38701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I've tried looking for a solution to this error and checking back over the storyboard but found nothing out of place. Any ideas on a fix?
UITableViewController needs an UITableView connected to it's view property.
Also make sure that the delegate and datasource are properly connected.
If you use xib, make sure that UITableView connected to fileOwner.tableView property.
You probably use xib file to make interface.
I just got started with obj-c Xcode and iPhone development...
I have read that the SIGABRT error is a crash, an uncaught expectation and I need to look trough the log to correct it but I don't know how to do it
Log:
2014-05-28 14:25:55.492 ctpp[558:60b] Cannot find executable for CFBundle 0xaa8b870 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2014-05-28 14:25:55.550 ctpp[558:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x8cbc260> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key elso.'
*** First throw call stack:
(
0 CoreFoundation 0x017f31e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x015728e5 objc_exception_throw + 44
2 CoreFoundation 0x01882fe1 -[NSException raise] + 17
3 Foundation 0x01232d9e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x0119f1d7 _NSSetUsingKeyValueSetter + 88
5 Foundation 0x0119e731 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 Foundation 0x01200b0a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7 UIKit 0x004e91f4 -[UIRuntimeOutletConnection connect] + 106
8 libobjc.A.dylib 0x015847de -[NSObject performSelector:] + 62
9 CoreFoundation 0x017ee76a -[NSArray makeObjectsPerformSelector:] + 314
10 UIKit 0x004e7d4d -[UINib instantiateWithOwner:options:] + 1417
11 UIKit 0x003506f5 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
12 UIKit 0x00350e9d -[UIViewController loadView] + 302
13 UIKit 0x003510d3 -[UIViewController loadViewIfRequired] + 78
14 UIKit 0x003515d9 -[UIViewController view] + 35
15 UIKit 0x00271267 -[UIWindow addRootViewControllerViewIfPossible] + 66
16 UIKit 0x002715ef -[UIWindow _setHidden:forced:] + 312
17 UIKit 0x0027186b -[UIWindow _orderFrontWithoutMakingKey] + 49
18 UIKit 0x0dc6a587 - [UIWindowAccessibility(SafeCategory) _orderFrontWithoutMakingKey] + 77
19 UIKit 0x0027c3c8 -[UIWindow makeKeyAndVisible] + 65
20 UIKit 0x0022cbc0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 2097
21 UIKit 0x00231667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
22 UIKit 0x00245f92 -[UIApplication handleEvent:withNewEvent:] + 3517
23 UIKit 0x00246555 -[UIApplication sendEvent:] + 85
24 UIKit 0x00233250 _UIApplicationHandleEvent + 683
25 GraphicsServices 0x037e8f02 _PurpleEventCallback + 776
26 GraphicsServices 0x037e8a0d PurpleEventCallback + 46
27 CoreFoundation 0x0176eca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
28 CoreFoundation 0x0176e9db __CFRunLoopDoSource1 + 523
29 CoreFoundation 0x0179968c __CFRunLoopRun + 2156
30 CoreFoundation 0x017989d3 CFRunLoopRunSpecific + 467
31 CoreFoundation 0x017987eb CFRunLoopRunInMode + 123
32 UIKit 0x00230d9c -[UIApplication _run] + 840
33 UIKit 0x00232f9b UIApplicationMain + 1225
34 ctpp 0x00005bcd main + 141
35 libdyld.dylib 0x01e3a701 start + 1
36 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Look at this part closely:
reason: '[<ViewController 0x8cbc260> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key elso.'
Somewhere you are using the key 'elso'. Is this the right key or a typo? Looks like a weird key to me, it doesn't tell me anything about the value it points to.
This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
i dont know where can be problem:/
2014-04-11 22:36:33.815 bus[1432:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<TableViewCell 0x8e63160> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key DescriptionLablel.'
*** First throw call stack:
(
0 CoreFoundation 0x017ee1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0156d8e5 objc_exception_throw + 44
2 CoreFoundation 0x0187dfe1 -[NSException raise] + 17
3 Foundation 0x0122dd9e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x0119a1d7 _NSSetUsingKeyValueSetter + 88
5 Foundation 0x01199731 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 UIKit 0x0029c508 -[UIView(CALayerDelegate) setValue:forKey:] + 168
7 Foundation 0x011fbb0a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
8 UIKit 0x004e41f4 -[UIRuntimeOutletConnection connect] + 106
9 libobjc.A.dylib 0x0157f7de -[NSObject performSelector:] + 62
10 CoreFoundation 0x017e976a -[NSArray makeObjectsPerformSelector:] + 314
11 UIKit 0x004e2d4d -[UINib instantiateWithOwner:options:] + 1417
12 UIKit 0x00319db0 -[UITableView _dequeueReusableViewOfType:withIdentifier:] + 370
13 UIKit 0x0031a089 -[UITableView dequeueReusableCellWithIdentifier:] + 48
14 UIKit 0x0031a0b9 -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] + 43
15 bus 0x000034bf -[TableViewController tableView:cellForRowAtIndexPath:] + 127
16 UIKit 0x0032611f -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 412
17 UIKit 0x003261f3 -[UITableView _createPreparedCellForGlobalRow:] + 69
18 UIKit 0x00307ece -[UITableView _updateVisibleCellsNow:] + 2428
19 UIKit 0x0031c6a5 -[UITableView layoutSubviews] + 213
20 UIKit 0x0029c964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
21 libobjc.A.dylib 0x0157f82b -[NSObject performSelector:withObject:] + 70
22 QuartzCore 0x03c5945a -[CALayer layoutSublayers] + 148
23 QuartzCore 0x03c4d244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
24 QuartzCore 0x03c593a5 -[CALayer layoutIfNeeded] + 160
25 UIKit 0x0035eae3 -[UIViewController window:setupWithInterfaceOrientation:] + 304
26 UIKit 0x00274aa7 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 5212
27 UIKit 0x00273646 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82
28 UIKit 0x00273518 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 117
29 UIKit 0x002735a0 -[UIWindow _setRotatableViewOrientation:duration:force:] + 67
30 UIKit 0x0027263a __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 120
31 UIKit 0x0027259c -[UIWindow _updateToInterfaceOrientation:duration:force:] + 400
32 UIKit 0x002732f3 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 870
33 UIKit 0x002768e6 -[UIWindow setDelegate:] + 449
34 UIKit 0x00350b77 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 180
35 UIKit 0x0026c474 -[UIWindow addRootViewControllerViewIfPossible] + 591
36 UIKit 0x0026c5ef -[UIWindow _setHidden:forced:] + 312
37 UIKit 0x0026c86b -[UIWindow _orderFrontWithoutMakingKey] + 49
38 UIKit 0x002773c8 -[UIWindow makeKeyAndVisible] + 65
39 UIKit 0x00227bc0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 2097
40 UIKit 0x0022c667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
41 UIKit 0x00240f92 -[UIApplication handleEvent:withNewEvent:] + 3517
42 UIKit 0x00241555 -[UIApplication sendEvent:] + 85
43 UIKit 0x0022e250 _UIApplicationHandleEvent + 683
44 GraphicsServices 0x037e3f02 _PurpleEventCallback + 776
45 GraphicsServices 0x037e3a0d PurpleEventCallback + 46
46 CoreFoundation 0x01769ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
47 CoreFoundation 0x017699db __CFRunLoopDoSource1 + 523
48 CoreFoundation 0x0179468c __CFRunLoopRun + 2156
49 CoreFoundation 0x017939d3 CFRunLoopRunSpecific + 467
50 CoreFoundation 0x017937eb CFRunLoopRunInMode + 123
51 UIKit 0x0022bd9c -[UIApplication _run] + 840
52 UIKit 0x0022df9b UIApplicationMain + 1225
53 bus 0x00003a4d main + 141
54 libdyld.dylib 0x01e35701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
It means that in a nib file you have an outlet called DescriptionLablel, but you don't have a property for it in your code. "Label" is misspelled, so that could be your problem.
I'm new to xcode and objective-c and i have created the base class which is a UIViewController. Let's call it A.
I have also created created an inheriting class B.
Now im trying to use my storyboard and connect it to the relevant B file,
But it wont show on the inspector, only the A file does.
Here are the header files:
A:
#import <UIKit/UIKit.h>
#import "Deck.h"
#interface CardGameViewController : UIViewController
// for subclasses
- (Deck*)createDeck; //abstract
#end
and:
B:
#import "CardGameViewController.h"
#interface PlayingCardViewController : CardGameViewController
#end
Is there any way to pass that? or should B actually be on the inspector?
EDIT:
This is the error i get after forcing the inspector to use the PlayingCardViewController:
2014-01-07 18:24:09.874 Matchismo[80975:70b] Unknown class PlayingCardGameViewController in Interface Builder file.
2014-01-07 18:24:09.893 Matchismo[80975:70b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x8d841e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key cardButtons.'
*** First throw call stack:
(
0 CoreFoundation 0x017415e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x014c48b6 objc_exception_throw + 44
2 CoreFoundation 0x017d16a1 -[NSException raise] + 17
3 Foundation 0x011859ee -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x010f1cfb _NSSetUsingKeyValueSetter + 88
5 Foundation 0x010f1253 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 Foundation 0x0115370a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7 UIKit 0x0071fe3a -[UIRuntimeOutletCollectionConnection performConnect] + 690
8 UIKit 0x0071fe75 -[UIRuntimeOutletCollectionConnection connect] + 33
9 libobjc.A.dylib 0x014d67d2 -[NSObject performSelector:] + 62
10 CoreFoundation 0x0173cb6a -[NSArray makeObjectsPerformSelector:] + 314
11 UIKit 0x004d356e -[UINib instantiateWithOwner:options:] + 1417
12 UIKit 0x00345605 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
13 UIKit 0x00345dad -[UIViewController loadView] + 302
14 UIKit 0x003460ae -[UIViewController loadViewIfRequired] + 78
15 UIKit 0x003465b4 -[UIViewController view] + 35
16 UIKit 0x0026e9fd -[UIWindow addRootViewControllerViewIfPossible] + 66
17 UIKit 0x0026ed97 -[UIWindow _setHidden:forced:] + 312
18 UIKit 0x0026f02d -[UIWindow _orderFrontWithoutMakingKey] + 49
19 UIKit 0x0027989a -[UIWindow makeKeyAndVisible] + 65
20 UIKit 0x0022ccd0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1851
21 UIKit 0x002313a8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
22 UIKit 0x0024587c -[UIApplication handleEvent:withNewEvent:] + 3447
23 UIKit 0x00245de9 -[UIApplication sendEvent:] + 85
24 UIKit 0x00233025 _UIApplicationHandleEvent + 736
25 GraphicsServices 0x036e82f6 _PurpleEventCallback + 776
26 GraphicsServices 0x036e7e01 PurpleEventCallback + 46
27 CoreFoundation 0x016bcd65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
28 CoreFoundation 0x016bca9b __CFRunLoopDoSource1 + 523
29 CoreFoundation 0x016e777c __CFRunLoopRun + 2156
30 CoreFoundation 0x016e6ac3 CFRunLoopRunSpecific + 467
31 CoreFoundation 0x016e68db CFRunLoopRunInMode + 123
32 UIKit 0x00230add -[UIApplication _run] + 840
33 UIKit 0x00232d3b UIApplicationMain + 1225
34 Matchismo 0x000038dd main + 141
35 libdyld.dylib 0x01d7f70d start + 1
36 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Go to the Product menu in Xcode and choose Clean. Sometimes that fixes weird issues like this.