So i was doing a tutorial from Sinch! on how to Fetch and Call Contacts,
Well it loads up the Contacts just fine.
The problem is that whenever I select a Contact to call, the app crashes and Xcode shows this error on the console.
Can anyone help me with that?
inchAppToPhoneTutorial[1143:42160] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Parameter 'applicationKey' is invalid (was '')'
*** First throw call stack:
(
0 CoreFoundation 0x000000010a70634b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010a08821e objc_exception_throw + 48
2 SinchAppToPhoneTutorial 0x0000000108cca77b SINCallOrderByStartTimeComparator + 66724
3 SinchAppToPhoneTutorial 0x0000000108cb1c6b _ZN6rebrtc13OfflineInvite6encodeERKS0_PhmPm + 4418449
4 SinchAppToPhoneTutorial 0x0000000108cc4d45 SINCallOrderByStartTimeComparator + 43630
5 SinchAppToPhoneTutorial 0x0000000108cc496c SINCallOrderByStartTimeComparator + 42645
6 SinchAppToPhoneTutorial 0x00000001088268e9 -[DetailViewController initSinchClient] + 89
7 SinchAppToPhoneTutorial 0x0000000108825e8a -[DetailViewController viewDidLoad] + 234
8 UIKit 0x000000010accb06d -[UIViewController loadViewIfRequired] + 1258
9 UIKit 0x000000010acd14d6 -[UIViewController __viewWillAppear:] + 118
10 UIKit 0x000000010acfc393 -[UINavigationController _startCustomTransition:] + 1290
11 UIKit 0x000000010ad0d008 -[UINavigationController _startDeferredTransitionIfNeeded:] + 697
12 UIKit 0x000000010ad0e19b -[UINavigationController __viewWillLayoutSubviews] + 58
13 UIKit 0x000000010af051b7 -[UILayoutContainerView layoutSubviews] + 223
14 UIKit 0x000000010abee344 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
15 QuartzCore 0x000000010e03bcdc -[CALayer layoutSublayers] + 146
16 QuartzCore 0x000000010e02f7a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
17 QuartzCore 0x000000010e02f61e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
18 QuartzCore 0x000000010dfbd62c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
19 QuartzCore 0x000000010dfea713 _ZN2CA11Transaction6commitEv + 475
20 UIKit 0x000000010ab54878 _afterCACommitHandler + 346
21 CoreFoundation 0x000000010a6aae17 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
22 CoreFoundation 0x000000010a6aad87 __CFRunLoopDoObservers + 391
23 CoreFoundation 0x000000010a68fb9e __CFRunLoopRun + 1198
24 CoreFoundation 0x000000010a68f494 CFRunLoopRunSpecific + 420
25 GraphicsServices 0x000000010e959a6f GSEventRunModal + 161
26 UIKit 0x000000010ab29f34 UIApplicationMain + 159
27 SinchAppToPhoneTutorial 0x00000001088257bf main + 111
28 libdyld.dylib 0x000000010c4fe68d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
It says what happened at the very top
inchAppToPhoneTutorial[1143:42160] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Parameter 'applicationKey' is invalid (was '')'
So figure out where you're calling something that utilizes an applicationKey and figure out why it's blank :)
Related
This is totally weird behavior! I just have two view controllers, say, V1, V2. I'm trying to push V2 from V1 using performSegueWithIdentifier and it throws this error
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber pointSize]: unrecognized selector sent to instance 0xb0000000000000e5'
I have assigned segue identifier. I have cross checked the name of the segue, it looks perfectly alright with no spaces etc.
I tried presenting V2 using presentViewController method with storyboard id and it's working good, but not when I push it.
I tested another empty view controller V3 with same segue identifier(of course, I removed the identifier for V2), and it's working. So the problem is, it's throwing the error only with V2.
EDIT
Complete call stack:
2016-07-27 11:18:24.018 Sample[13254:123408] -[__NSCFNumber pointSize]: unrecognized selector sent to instance 0xb0000000000000e5
2016-07-27 11:18:24.033 Sample[13254:123408] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber pointSize]: unrecognized selector sent to instance 0xb0000000000000e5'
*** First throw call stack:
(
0 CoreFoundation 0x0000000106e5dd85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001068d1deb objc_exception_throw + 48
2 CoreFoundation 0x0000000106e66d3d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000106daccfa ___forwarding___ + 970
4 CoreFoundation 0x0000000106dac8a8 _CF_forwarding_prep_0 + 120
5 UIKit 0x0000000104f33023 -[UINavigationBar _defaultTitleFontFittingHeight:withScaleAdjustment:] + 201
6 UIKit 0x0000000104f332ae -[UINavigationBar _defaultTitleFontWithScaleAdjustment:] + 99
7 UIKit 0x0000000104f5e443 -[UINavigationItemView _defaultFont] + 125
8 UIKit 0x0000000104f5e315 -[UINavigationItemView initWithNavigationItem:] + 338
9 UIKit 0x0000000104f2cc89 -[UINavigationItem _defaultTitleView] + 125
10 UIKit 0x0000000104f2cd2b -[UINavigationItem _titleView] + 125
11 UIKit 0x0000000104f4e5d8 -[UINavigationBar _removeItemsFromSuperview:] + 124
12 UIKit 0x0000000104f36718 -[UINavigationBar _setItems:transition:reset:resetOwningRelationship:] + 986
13 UIKit 0x00000001050175f0 -[UINavigationController _setNavigationBarHidden:edge:duration:] + 258
14 UIKit 0x0000000105016f3f -[UINavigationController _setNavigationBarHidden:edgeIfNotNavigating:duration:] + 607
15 UIKit 0x000000010501587c -[UINavigationController setNavigationBarHidden:animated:] + 142
16 Sample 0x0000000102df6783 _TFC10Sample21TPLoginViewController17viewWillDisappearfSbT_ + 195
17 Sample 0x0000000102df67d1 _TToFC10Sample21TPLoginViewController17viewWillDisappearfSbT_ + 49
18 UIKit 0x0000000104fe33aa -[UIViewController _setViewAppearState:isAnimating:] + 947
19 UIKit 0x0000000104fe3ac2 -[UIViewController __viewWillDisappear:] + 93
20 UIKit 0x0000000105013735 -[UINavigationController _startCustomTransition:] + 1176
21 UIKit 0x0000000105023b9b -[UINavigationController _startDeferredTransitionIfNeeded:] + 712
22 UIKit 0x0000000105024d0b -[UINavigationController __viewWillLayoutSubviews] + 57
23 UIKit 0x00000001051d3503 -[UILayoutContainerView layoutSubviews] + 248
24 UIKit 0x0000000104efd980 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 703
25 QuartzCore 0x00000001049e0c00 -[CALayer layoutSublayers] + 146
26 QuartzCore 0x00000001049d508e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
27 QuartzCore 0x00000001049d4f0c _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
28 QuartzCore 0x00000001049c93c9 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
29 QuartzCore 0x00000001049f7086 _ZN2CA11Transaction6commitEv + 486
30 UIKit 0x0000000104e3d72e _UIApplicationHandleEventQueue + 7135
31 CoreFoundation 0x0000000106d83301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
32 CoreFoundation 0x0000000106d7922c __CFRunLoopDoSources0 + 556
33 CoreFoundation 0x0000000106d786e3 __CFRunLoopRun + 867
34 CoreFoundation 0x0000000106d780f8 CFRunLoopRunSpecific + 488
35 GraphicsServices 0x000000010a9f4ad2 GSEventRunModal + 161
36 UIKit 0x0000000104e42f09 UIApplicationMain + 171
37 Sample 0x0000000102f037f2 main + 114
38 libdyld.dylib 0x00000001081e692d start + 1
39 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I am relatively new to Swift and iOS in general. When I create a segue from a button to another view, I get a nasty error message (below). Can someone help me decipher this?
2016-04-17 16:25:49.133 FoodPin[9322:676896] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] instantiated view controller with identifier "UIViewController-u9a-Ka-ctP" from storyboard "Main", but didn't get a UITableView.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102d58d85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000104afcdeb objc_exception_throw + 48
2 CoreFoundation 0x0000000102d58cbd +[NSException raise:format:] + 205
3 UIKit 0x000000010396e4e2 -[UITableViewController loadView] + 638
4 UIKit 0x000000010371b560 -[UIViewController loadViewIfRequired] + 138
5 UIKit 0x000000010372193b -[UIViewController __viewWillAppear:] + 120
6 UIKit 0x0000000103751750 -[UINavigationController _startCustomTransition:] + 1203
7 UIKit 0x0000000103761b9b -[UINavigationController _startDeferredTransitionIfNeeded:] + 712
8 UIKit 0x0000000103762d0b -[UINavigationController __viewWillLayoutSubviews] + 57
9 UIKit 0x0000000103911503 -[UILayoutContainerView layoutSubviews] + 248
10 UIKit 0x000000010363b980 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 703
11 QuartzCore 0x0000000108006c00 -[CALayer layoutSublayers] + 146
12 QuartzCore 0x0000000107ffb08e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
13 QuartzCore 0x0000000107ffaf0c _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
14 QuartzCore 0x0000000107fef3c9 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
15 QuartzCore 0x000000010801d086 _ZN2CA11Transaction6commitEv + 486
16 QuartzCore 0x000000010801d7f8 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
17 CoreFoundation 0x0000000102c7dc37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
18 CoreFoundation 0x0000000102c7dba7 __CFRunLoopDoObservers + 391
19 CoreFoundation 0x0000000102c737fb __CFRunLoopRun + 1147
20 CoreFoundation 0x0000000102c730f8 CFRunLoopRunSpecific + 488
21 GraphicsServices 0x00000001073eead2 GSEventRunModal + 161
22 UIKit 0x0000000103580f09 UIApplicationMain + 171
23 FoodPin 0x0000000102b589f2 main + 114
24 libdyld.dylib 0x00000001055c092d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I'm developing an app that uses SQLITE and works perfectly on Iphone 6plus simulator but crash on Iphone6 simulator and also on Iphone5. I'm not sure what's the problem. Can anyone help me with that?
This is the debug error that I'm getting from Xcode
*** Terminating app due to uncaught exception 'NSRangeException', reason:
*** -[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 10]'
*** First throw call stack:
(
0 CoreFoundation 0x000000010492ae65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001043a3deb objc_exception_throw + 48
2 CoreFoundation 0x000000010480e404 -[__NSArrayM objectAtIndex:] + 212
3 ILFCalc 0x0000000103d85cf8 -[EditInfoViewController loadInfoToEdit] + 424
4 ILFCalc 0x0000000103d83f76 -[EditInfoViewController viewDidLoad] + 1174
5 UIKit 0x0000000104e6df98 -[UIViewController loadViewIfRequired] + 1198
6 UIKit 0x0000000104e73f4f -[UIViewController __viewWillAppear:] + 120
7 UIKit 0x0000000104ea3e44 -[UINavigationController _startCustomTransition:] + 1203
8 UIKit 0x0000000104eb423f -[UINavigationController _startDeferredTransitionIfNeeded:] + 712
9 UIKit 0x0000000104eb53af -[UINavigationController __viewWillLayoutSubviews] + 57
10 UIKit 0x000000010505bff7 -[UILayoutContainerView layoutSubviews] + 248
11 UIKit 0x0000000104d8e4a3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 703
12 QuartzCore 0x000000010874559a -[CALayer layoutSublayers] + 146
13 QuartzCore 0x0000000108739e70 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
14 QuartzCore 0x0000000108739cee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
15 QuartzCore 0x000000010872e475 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
16 QuartzCore 0x000000010875bc0a _ZN2CA11Transaction6commitEv + 486
17 QuartzCore 0x000000010875c37c _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
18 CoreFoundation 0x0000000104856367 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
19 CoreFoundation 0x00000001048562d7 __CFRunLoopDoObservers + 391
20 CoreFoundation 0x000000010484bf2b __CFRunLoopRun + 1147
21 CoreFoundation 0x000000010484b828 CFRunLoopRunSpecific + 488
22 GraphicsServices 0x0000000107fd2ad2 GSEventRunModal + 161
23 UIKit 0x0000000104cd7610 UIApplicationMain + 171
24 ILFCalc 0x0000000103d898af main + 111
25 libdyld.dylib 0x000000010631a92d start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I am simple trying to trigger a segue from one view controller to another when the user presses a button, but I get the following error code when I try.
2014-12-09 15:38:32.559 Hokulia[2697:172401] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<selectCombos 0x7ffb11e5f030> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key tableView.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000104f48f35 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000104be1bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000104f48b79 -[NSException raise] + 9
3 Foundation 0x000000010477e7b3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x0000000104e92e80 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x000000010374fc7d -[UINib instantiateWithOwner:options:] + 1506
6 UIKit 0x00000001035aef98 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
7 UIKit 0x00000001035af588 -[UIViewController loadView] + 109
8 UIKit 0x00000001035af7f9 -[UIViewController loadViewIfRequired] + 75
9 UIKit 0x00000001035afc8e -[UIViewController view] + 27
10 UIKit 0x00000001035d3507 -[UINavigationController _startCustomTransition:] + 633
11 UIKit 0x00000001035df3fe -[UINavigationController _startDeferredTransitionIfNeeded:] + 386
12 UIKit 0x00000001035dff47 -[UINavigationController __viewWillLayoutSubviews] + 43
13 UIKit 0x0000000103725509 -[UILayoutContainerView layoutSubviews] + 202
14 UIKit 0x0000000103503973 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 521
15 QuartzCore 0x0000000105daade8 -[CALayer layoutSublayers] + 150
16 QuartzCore 0x0000000105d9fa0e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
17 QuartzCore 0x0000000105d9f87e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
18 QuartzCore 0x0000000105d0d63e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
19 QuartzCore 0x0000000105d0e74a _ZN2CA11Transaction6commitEv + 390
20 QuartzCore 0x0000000105d0edb5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89
21 CoreFoundation 0x0000000104e7ddc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
22 CoreFoundation 0x0000000104e7dd20 __CFRunLoopDoObservers + 368
23 CoreFoundation 0x0000000104e73b53 __CFRunLoopRun + 1123
24 CoreFoundation 0x0000000104e73486 CFRunLoopRunSpecific + 470
25 GraphicsServices 0x00000001058e19f0 GSEventRunModal + 161
26 UIKit 0x000000010348a420 UIApplicationMain + 1282
27 Hokulia 0x0000000102b25ca3 main + 115
28 libdyld.dylib 0x0000000107c4a145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I was recently trying to create a hidden button called signupComplete, and suddenly now I get this error everytime I try to run the app. here is the error message I recieve in the console:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<SignupViewController 0x10a3519f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key signupComplete.'
Im not sure why I am getting this. I even went back and removed anything that had to do with the signupComplete button, but I still keep receiving this error.
*** First throw call stack: (
0 CoreFoundation 0x0000000102846495 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001025a599e objc_exception_throw + 43
2 CoreFoundation 0x00000001028ca919 -[NSException raise] + 9
3 Foundation 0x0000000102186530 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x0000000102842400 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x00000001013ad8a6 -[UINib instantiateWithOwner:options:] + 1131
6 UIKit 0x0000000101247b0c -[UIViewController _loadViewFromNibNamed:bundle:] + 245
7 UIKit 0x0000000101248149 -[UIViewController loadView] + 112
8 UIKit 0x00000001012483b7 -[UIViewController loadViewIfRequired] + 75
9 UIKit 0x0000000101248777 -[UIViewController view] + 29
10 UIKit 0x000000010125f2c5 -[UINavigationController _startCustomTransition:] + 628
11 UIKit 0x000000010126a6f5 -[UINavigationController _startDeferredTransitionIfNeeded:] + 401
12 UIKit 0x000000010126b238 -[UINavigationController __viewWillLayoutSubviews] + 43
13 UIKit 0x0000000101385895 -[UILayoutContainerView layoutSubviews] + 202
14 UIKit 0x00000001011b2993 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 354
15 QuartzCore 0x00000001004d5802 -[CALayer layoutSublayers] + 151
16 QuartzCore 0x00000001004ca369 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 363
17 QuartzCore 0x00000001004ca1ea _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
18 QuartzCore 0x000000010043dfb8 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 252
19 QuartzCore 0x000000010043f030 _ZN2CA11Transaction6commitEv + 394
20 UIKit 0x0000000101151024 _UIApplicationHandleEventQueue + 10914
21 CoreFoundation 0x00000001027d5d21 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
22 CoreFoundation 0x00000001027d55f2 __CFRunLoopDoSources0 + 242
23 CoreFoundation 0x00000001027f146f __CFRunLoopRun + 767
24 CoreFoundation 0x00000001027f0d83 CFRunLoopRunSpecific + 467
25 GraphicsServices 0x000000010459ef04 GSEventRunModal + 161
26 UIKit 0x0000000101152e33 UIApplicationMain + 1010
27 PickPiic 0x0000000100002853 main + 115
28 libdyld.dylib 0x00000001031855fd start + 1
29 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)