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.
Related
I'm quite new to Xcode and Swift and in many of my previous projects I kept getting a Thread 1: signal SIGABRT error. I can't discern what the problem is from the error report. Can someone help find the source of the error itself. This is the error report:
2017-05-03 11:10:02.608 coin op[18988:750658] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason:
'[<coin_op.ViewController 0x7f9b33522250> setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key test.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010bfedd85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010dd91deb objc_exception_throw + 48
2 CoreFoundation 0x000000010bfed9c9 -[NSException raise] + 9
3 Foundation 0x000000010c3bf19b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288
4 UIKit 0x000000010c9a8d0c -[UIViewController setValue:forKey:] + 88
5 UIKit 0x000000010cbdf7fb -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x000000010bf27890 -[NSArray makeObjectsPerformSelector:] + 224
7 UIKit 0x000000010cbde1de -[UINib instantiateWithOwner:options:] + 1864
8 UIKit 0x000000010c9af8d6 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
9 UIKit 0x000000010c9b0202 -[UIViewController loadView] + 178
10 UIKit 0x000000010c9b0560 -[UIViewController loadViewIfRequired] + 138
11 UIKit 0x000000010c9b0cd3 -[UIViewController view] + 27
12 UIKit 0x000000010c886fb4 -[UIWindow addRootViewControllerViewIfPossible] + 61
13 UIKit 0x000000010c88769d -[UIWindow _setHidden:forced:] + 282
14 UIKit 0x000000010c899180 -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x000000010c80ded9 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
16 UIKit 0x000000010c814568 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1769
17 UIKit 0x000000010c811714 -[UIApplication workspaceDidEndTransaction:] + 188
18 FrontBoardServices 0x000000010fc228c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
19 FrontBoardServices 0x000000010fc22741 -[FBSSerialQueue _performNext] + 178
20 FrontBoardServices 0x000000010fc22aca -[FBSSerialQueue _performNextFromRunLoopSource] + 45
21 CoreFoundation 0x000000010bf13301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
22 CoreFoundation 0x000000010bf0922c __CFRunLoopDoSources0 + 556
23 CoreFoundation 0x000000010bf086e3 __CFRunLoopRun + 867
24 CoreFoundation 0x000000010bf080f8 CFRunLoopRunSpecific + 488
25 UIKit 0x000000010c810f21 -[UIApplication _run] + 402
26 UIKit 0x000000010c815f09 UIApplicationMain + 171
27 coin op 0x000000010bdffe12 main + 114
28 libdyld.dylib 0x000000010e85592d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
The crucial information is:
[UIViewController setValue:forKey:] this class is not key value coding-compliant for the key test.
[UIRuntimeOutletConnection connect]
That leads to a dead connection in Interface Builder
Press ⇧⌘F
Type test and return
Go thru the search results and select the one pointing to Interface Builder.
Disconnect the dead outlet.
objc[4129]: Class PLBuildVersion is implemented in both /Applications/ Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11d1ec998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11d00e880). One of the two will be used. Which one is undefined.
2017-01-31 20:28:24.620 Reminder[4129:144700] WARNING: Firebase Analytics App Delegate Proxy is disabled. To log deep link campaigns manually, call the methods in FIRAnalytics+AppDelegate.h.
2017-01-31 20:28:24.917 Reminder[4129:144700] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Reminder.LoginViewController 0x7fbeabd0a6f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key Password.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010c196d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010bbf821e objc_exception_throw + 48
2 CoreFoundation 0x000000010c196c99 -[NSException raise] + 9
3 Foundation 0x000000010b7069df -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
4 UIKit 0x000000010c755293 -[UIViewController setValue:forKey:] + 88
5 UIKit 0x000000010c9c979e -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x000000010c13b9e0 -[NSArray makeObjectsPerformSelector:] + 256
7 UIKit 0x000000010c9c8122 -[UINib instantiateWithOwner:options:] + 1867
8 UIKit 0x000000010c75b9c5 -[UIViewController _loadViewFromNibNamed:bundle:] + 386
9 UIKit 0x000000010c75c2e7 -[UIViewController loadView] + 177
10 UIKit 0x000000010c75c61c -[UIViewController loadViewIfRequired] + 201
11 UIKit 0x000000010c75ce70 -[UIViewController view] + 27
12 UIKit 0x000000010c6264b5 -[UIWindow addRootViewControllerViewIfPossible] + 71
13 UIKit 0x000000010c626c06 -[UIWindow _setHidden:forced:] + 293
14 UIKit 0x000000010c63a519 -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x000000010c5b2f8d -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4818
16 UIKit 0x000000010c5b90ed -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
17 UIKit 0x000000010c5b626d -[UIApplication workspaceDidEndTransaction:] + 188
18 FrontBoardServices 0x0000000111bbc6cb __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
19 FrontBoardServices 0x0000000111bbc544 -[FBSSerialQueue _performNext] + 189
20 FrontBoardServices 0x0000000111bbc8cd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
21 CoreFoundation 0x000000010c13b761 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
22 CoreFoundation 0x000000010c12098c __CFRunLoopDoSources0 + 556
23 CoreFoundation 0x000000010c11fe76 __CFRunLoopRun + 918
24 CoreFoundation 0x000000010c11f884 CFRunLoopRunSpecific + 420
25 UIKit 0x000000010c5b4aea -[UIApplication _run] + 434
26 UIKit 0x000000010c5bac68 UIApplicationMain + 159
27 Reminder 0x000000010a4a94bf main + 111
28 libdyld.dylib 0x000000010e86868d start + 1
29 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Get this when starting the app when I goto a view with firebase auth enabled.
The Worst thing is even when I remove the firebase auth and just have blank view it won't work
Forgot to add the FIRApp.configure() into the App delegate
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 6 years ago.
I'm new to Swift and am experimenting with things such as the stepper. I followed online step-by-step instructions on how to make one but I'm getting an error (Attached below) and I am not quite understanding where the issue is.
Error:
2016-06-04 04:31:15.832 numChsnger[12025:1111078] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<numChsnger.ViewController 0x7fc082695990> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key stepper.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102328d85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001040ccdeb objc_exception_throw + 48
2 CoreFoundation 0x00000001023289c9 -[NSException raise] + 9
3 Foundation 0x00000001026fa19b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288
4 UIKit 0x0000000102ce3d0c -[UIViewController setValue:forKey:] + 88
5 UIKit 0x0000000102f1a7fb -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x0000000102262890 -[NSArray makeObjectsPerformSelector:] + 224
7 UIKit 0x0000000102f191de -[UINib instantiateWithOwner:options:] + 1864
8 UIKit 0x0000000102cea8d6 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
9 UIKit 0x0000000102ceb202 -[UIViewController loadView] + 178
10 UIKit 0x0000000102ceb560 -[UIViewController loadViewIfRequired] + 138
11 UIKit 0x0000000102cebcd3 -[UIViewController view] + 27
12 UIKit 0x0000000102bc1fb4 -[UIWindow addRootViewControllerViewIfPossible] + 61
13 UIKit 0x0000000102bc269d -[UIWindow _setHidden:forced:] + 282
14 UIKit 0x0000000102bd4180 -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x0000000102b48ed9 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
16 UIKit 0x0000000102b4f568 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1769
17 UIKit 0x0000000102b4c714 -[UIApplication workspaceDidEndTransaction:] + 188
18 FrontBoardServices 0x0000000105f5d8c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
19 FrontBoardServices 0x0000000105f5d741 -[FBSSerialQueue _performNext] + 178
20 FrontBoardServices 0x0000000105f5daca -[FBSSerialQueue _performNextFromRunLoopSource] + 45
21 CoreFoundation 0x000000010224e301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
22 CoreFoundation 0x000000010224422c __CFRunLoopDoSources0 + 556
23 CoreFoundation 0x00000001022436e3 __CFRunLoopRun + 867
24 CoreFoundation 0x00000001022430f8 CFRunLoopRunSpecific + 488
25 UIKit 0x0000000102b4bf21 -[UIApplication _run] + 402
26 UIKit 0x0000000102b50f09 UIApplicationMain + 171
27 numChsnger 0x0000000102144382 main + 114
28 libdyld.dylib 0x0000000104b9092d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
View:
Check if your stepper has a redundant outlet in your storyboard. Right click on the stepper object in Storyboard and check if there is any outlet you don't want.
Also. Remove #Iboutlet var textV:UILabel! or reconnect it with the Label in your storyboard and the error will be gone.
I have been playing around with a project of mine tonight and now I can't get it to load up. Strange thing is I have got an older version of this and have even tried to copy all data across and still not loading.
Error I am getting in NSLog is as follows:
2014-04-01 01:24:53.513 Adult Game[47180:a0b] CUICatalog: Invalid asset name supplied: , or invalid scale factor: 2.000000
2014-04-01 01:24:53.515 Adult Game[47180:a0b] Could not load the "" image referenced from a nib in the bundle with identifier "DannyLinton.Adult-Game"
2014-04-01 01:24:53.519 Adult Game[47180:a0b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x8e35860> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key animate.'
*** First throw call stack:
(
0 CoreFoundation 0x0196f5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x016f28b6 objc_exception_throw + 44
2 CoreFoundation 0x019ff6a1 -[NSException raise] + 17
3 Foundation 0x013b39ee -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x0131fcfb _NSSetUsingKeyValueSetter + 88
5 Foundation 0x0131f253 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 Foundation 0x0138170a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7 UIKit 0x00702a15 -[UIRuntimeOutletConnection connect] + 106
8 libobjc.A.dylib 0x017047d2 -[NSObject performSelector:] + 62
9 CoreFoundation 0x0196ab6a -[NSArray makeObjectsPerformSelector:] + 314
10 UIKit 0x0070156e -[UINib instantiateWithOwner:options:] + 1417
11 UIKit 0x00573605 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
12 UIKit 0x00573dad -[UIViewController loadView] + 302
13 UIKit 0x005740ae -[UIViewController loadViewIfRequired] + 78
14 UIKit 0x005745b4 -[UIViewController view] + 35
15 UIKit 0x0049c9fd -[UIWindow addRootViewControllerViewIfPossible] + 66
16 UIKit 0x0049cd97 -[UIWindow _setHidden:forced:] + 312
17 UIKit 0x0049d02d -[UIWindow _orderFrontWithoutMakingKey] + 49
18 UIKit 0x004a789a -[UIWindow makeKeyAndVisible] + 65
19 UIKit 0x0045acd0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1851
20 UIKit 0x0045f3a8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
21 UIKit 0x0047387c -[UIApplication handleEvent:withNewEvent:] + 3447
22 UIKit 0x00473de9 -[UIApplication sendEvent:] + 85
23 UIKit 0x00461025 _UIApplicationHandleEvent + 736
24 GraphicsServices 0x031042f6 _PurpleEventCallback + 776
25 GraphicsServices 0x03103e01 PurpleEventCallback + 46
26 CoreFoundation 0x018ead65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
27 CoreFoundation 0x018eaa9b __CFRunLoopDoSource1 + 523
28 CoreFoundation 0x0191577c __CFRunLoopRun + 2156
29 CoreFoundation 0x01914ac3 CFRunLoopRunSpecific + 467
30 CoreFoundation 0x019148db CFRunLoopRunInMode + 123
31 UIKit 0x0045eadd -[UIApplication _run] + 840
32 UIKit 0x00460d3b UIApplicationMain + 1225
33 Adult Game 0x00007dad main + 141
34 libdyld.dylib 0x02df2725 start + 0
35 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Any help would be very much appreciated.
You have a phantom connection in your StoryBoard or XIB file called "animate".
Open your StoryBoard / XIB file
If you are using a StoryBoard, select the AdultGame view controller
Click on the "File's Owner" along the left
Select "View > Utilities > Show Connections Inspector"
You will see a list of "Outlets". One of them will be called "animate" and have an exclamation point next to it. Click on the little "x" to delete it.
I want to display static cells in a ContainerView but every time the app runs it crashes at start. I read somewhere your unable to use static cells in UITableView but said it should work in a Container View to UITableViewController. Thanks for any input.
2014-01-01 15:44:56.294 InterestingGame[24199:a0b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x8935970> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key second.'
*** First throw call stack:
(
0 CoreFoundation 0x0173d5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x014c08b6 objc_exception_throw + 44
2 CoreFoundation 0x017cd6a1 -[NSException raise] + 17
3 Foundation 0x011819ee -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x010edcfb _NSSetUsingKeyValueSetter + 88
5 Foundation 0x010ed253 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 Foundation 0x0114f70a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7 UIKit 0x004d0a15 -[UIRuntimeOutletConnection connect] + 106
8 libobjc.A.dylib 0x014d27d2 -[NSObject performSelector:] + 62
9 CoreFoundation 0x01738b6a -[NSArray makeObjectsPerformSelector:] + 314
10 UIKit 0x004cf56e -[UINib instantiateWithOwner:options:] + 1417
11 UIKit 0x00762a2f -[UIStoryboard instantiateViewControllerWithIdentifier:] + 220
12 UIKit 0x00762ba8 -[UIStoryboard instantiateInitialViewController] + 74
13 UIKit 0x0022e44c -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 79
14 UIKit 0x0022e6e9 -[UIApplication _loadMainInterfaceFile] + 245
15 UIKit 0x0022d28f -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543
16 UIKit 0x0024187c -[UIApplication handleEvent:withNewEvent:] + 3447
17 UIKit 0x00241de9 -[UIApplication sendEvent:] + 85
18 UIKit 0x0022f025 _UIApplicationHandleEvent + 736
19 GraphicsServices 0x036942f6 _PurpleEventCallback + 776
20 GraphicsServices 0x03693e01 PurpleEventCallback + 46
21 CoreFoundation 0x016b8d65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
22 CoreFoundation 0x016b8a9b __CFRunLoopDoSource1 + 523
23 CoreFoundation 0x016e377c __CFRunLoopRun + 2156
24 CoreFoundation 0x016e2ac3 CFRunLoopRunSpecific + 467
25 CoreFoundation 0x016e28db CFRunLoopRunInMode + 123
26 UIKit 0x0022cadd -[UIApplication _run] + 840
27 UIKit 0x0022ed3b UIApplicationMain + 1225
28 InterestingGame 0x0000473d main + 141
29 libdyld.dylib 0x01d79725 start + 0
)
libc++abi.dylib: terminating with uncaught exception of type NSException
That exception is pointing to an outlet being hooked up in interface builder that may no longer have an underlying property.
You may have previously had a second property declared in code that was then hooked up in a xib/storyboard. You will then have removed this property or renamed it and not broken the connection in the xib/storyboard. You need to go to the connections panel in interface builder and remove the broken connection