Crashlytics reported the following error:
Fatal Exception: NSInvalidArgumentException - [_ UIFieldEditorLayoutManager addTextContainer:] unrecognized selector sent to the instance
...
My question is: How can I control this Exception?
Greetings.
Code:
-(void) method{
NSError *authError = nil;
LAContext *laCtx = [[LAContext alloc] init];
if ([laCtx canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {
...
}
} else {
[txtField becomeFirstResponder];
self.navigationItem.hidesBackButton = NO;
}
}
The report shows the crash in the line: self.navigationItem.hidesBackButton = NO;. But I think it has to do with the text field (due to the error message).
The crash report indicates:
0 iosApp 0x4e8221 CLSProcessRecordAllThreads + 4362785
1 iosApp 0x4e8221 CLSProcessRecordAllThreads + 4362785
2 iosApp 0x4e8119 CLSProcessRecordAllThreads + 4362521
3 iosApp 0x4dc05f CLSHandler + 4313183
4 iosApp 0x4e6b0b __CLSExceptionRecord_block_invoke + 4356875
5 libdispatch.dylib 0x23739b47 _dispatch_client_callout + 22
6 libdispatch.dylib 0x23745355 _dispatch_barrier_sync_f_invoke + 56
7 iosApp 0x4e650d CLSExceptionRecord + 4355341
8 iosApp 0x4e6335 CLSExceptionRecordNSException + 4354869
9 iosApp 0x4e5e4b CLSTerminateHandler() + 4353611
10 libc++abi.dylib 0x23358e17 std::__terminate(void (*)()) + 78
11 libc++abi.dylib 0x233585f5 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 110
12 libobjc.A.dylib 0x23366eeb objc_exception_throw + 250
13 CoreFoundation 0x23bc5925 __methodDescriptionForSelector + 186
14 CoreFoundation 0x23bc3559 __forwarding __ + 700
15 CoreFoundation 0x23af3c08 _CF_forwarding_prep_0 + 24
16 UIKit 0x27e0bc59 -[UIFieldEditor initWithFrame:] + 584
17 UIKit 0x27d1c44d +[UIFieldEditor sharedFieldEditor] + 88
18 UIKit 0x27e0b7d5 -[UITextField _becomeFirstResponder] + 184
19 UIKit 0x27d8374d -[UIResponder becomeFirstResponder] + 396
20 UIKit 0x27d83b29 -[UIView(Hierarchy) becomeFirstResponder] + 132
21 UIKit 0x27e0a39d -[UITextField becomeFirstResponder] + 48
22 iosApp 0x22a5bd -[MyViewController methodCrashed] (MyViewController.m:175)
23 iosApp 0x229fdf __45-[MyViewController methodLCS]_block_invoke (MyViewController.m:91)
24 Framework1 0x167a3c9 -[MyViewControllerLCS requestAuthorizationWithHandler:] (MyViewControllerLCS.m:48)
25 iosApp 0x229eb5 -[MyViewController methodLCS] (MyViewController.m:106)
26 iosApp 0x229e25 -[MyViewController viewDidAppear:] (MyViewController.m:73)
27 UIKit 0x27d152af -[UIViewController _setViewAppearState:isAnimating:] + 670
28 UIKit 0x27d15837 -[UIViewController _endAppearanceTransition:] + 258
29 UIKit 0x27dd0fdb -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 986
30 UIKit 0x27eab2d7 __49-[UINavigationController _startCustomTransition:]_block_invoke + 210
31 UIKit 0x27e2909f -[_UIViewControllerTransitionContext completeTransition:] + 90
32 UIKit 0x27f8ddfb __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke95 + 682
33 UIKit 0x27d37b25 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 540
34 UIKit 0x27d37605 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 204
35 UIKit 0x27d374ff -[UIViewAnimationState animationDidStop:finished:] + 78
36 QuartzCore 0x25dfea21 CA::Layer::run_animation_callbacks(void*) + 252
37 libdispatch.dylib 0x23739b47 _dispatch_client_callout + 22
38 libdispatch.dylib 0x23747ee1 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1524
39 CoreFoundation 0x23b833fd _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE_ + 8
40 CoreFoundation 0x23b818f7 __CFRunLoopRun + 1574
41 CoreFoundation 0x23ad4bf9 CFRunLoopRunSpecific + 520
42 CoreFoundation 0x23ad49e5 CFRunLoopRunInMode + 108
43 GraphicsServices 0x24d20ac9 GSEventRunModal + 160
44 UIKit 0x27d64ba1 UIApplicationMain + 144
45 iosApp 0x342779 main (main.m:14)
46 libdispatch.dylib 0x23783873 (Missing)
Related
Few days ago i started receiving user reports that my app is not working. After few hours of investigation i've found that controller is not shown ([self.navigationController pushViewController:terminalController animated:YES];) if it has UIWebView and there is no wifi connection! I did not believe it but i have 2 controllers - one with loading 'about the app' page and another is for showing some built-in app documentation. I'm testing on ios 8.1.2 and ipad 2.
Controller's viewDidLoad just is not invoked and the app just freezes. I've checked few times - if i turn wifi on and relaunch the app controllers are shown!
The problem is that i'm using uiwebview for showing local pages and it does not require wifi connection, so most users are very confused.
Any workaround?
Update: here is how i push controller:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:#"Main" bundle: nil];
ASTerminalController *terminalController = [storyboard instantiateViewControllerWithIdentifier:#"ASTerminalController"];
terminalController.htmlFilename = self.outputFilePath;
[self.navigationController pushViewController:terminalController animated:YES];
Update2: i've modified the app and now i'm creating UIWebView not in storyboard but in code. Now i can see initWithFrame hangs is there is no internet connection:
self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
Update 1: probably some 3rd-party code uses UIWebView and somehow blocks it (see semaphore is used):
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x3aa34540 semaphore_wait_trap + 8
1 libsystem_platform.dylib 0x3aabf431 _os_semaphore_wait + 9
2 libdispatch.dylib 0x01b966f7 0x1b94000 + 9975
3 UIKit 0x2ff893ef +[UIWebDocumentView initialize] + 39
4 libobjc.A.dylib 0x3a4024d5 _class_initialize + 533
5 libobjc.A.dylib 0x3a4022fd _class_initialize + 61
6 libobjc.A.dylib 0x3a40805b lookUpImpOrForward + 251
7 libobjc.A.dylib 0x3a407f53 _class_lookupMethodAndLoadCache3 + 31
8 libobjc.A.dylib 0x3a40e1d7 _objc_msgSend_uncached + 23
9 UIKit 0x2fe743d1 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) containerIsBrowserView] + 73
10 UIKit 0x2fe74353 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) textDocument] + 35
11 UIKit 0x2fe74271 -[UITextSelectionView selection] + 41
12 UIKit 0x2fe74e7f -[UITextSelectionView selectionChanged] + 167
13 UIKit 0x304f17bb __47-[UITextInputController _setSelectedTextRange:]_block_invoke251 + 223
14 UIKit 0x2fe74d8b __52-[UITextInputController _coordinateSelectionChange:]_block_invoke + 83
15 UIFoundation 0x3756bb63 -[NSTextStorage coordinateReading:] + 35
16 UIKit 0x2fe74d31 -[UITextInputController _coordinateSelectionChange:] + 97
17 UIKit 0x304f14d3 -[UITextInputController _setSelectedTextRange:] + 599
18 UIKit 0x2feda6db -[UITextView setAttributedText:] + 391
19 CppCode 0x0011b925 0xd1000 + 305445
20 CppCode 0x0011d0cb 0xd1000 + 311499
21 CppCode 0x00119daf 0xd1000 + 298415
22 CoreFoundation 0x2c931c5f __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 11
23 CoreFoundation 0x2c88d6d1 _CFXNotificationPost + 1781
24 Foundation 0x2d5bf125 -[NSNotificationCenter postNotificationName:object:userInfo:] + 69
25 Foundation 0x2d5ebe33 -[NSUserDefaults(NSUserDefaults) registerDefaults:] + 71
26 WebKitLegacy 0x389df8cd +[WebView initialize] + 301
27 libobjc.A.dylib 0x3a4024d5 _class_initialize + 533
28 libobjc.A.dylib 0x3a40805b lookUpImpOrForward + 251
29 libobjc.A.dylib 0x3a407f53 _class_lookupMethodAndLoadCache3 + 31
30 libobjc.A.dylib 0x3a40e1d7 _objc_msgSend_uncached + 23
31 WebKitLegacy 0x389df6cf WebKitInitialize + 67
32 UIKit 0x3009cf97 ___UIApplicationLoadWebKit_block_invoke + 151
33 libdispatch.dylib 0x01b959c5 0x1b94000 + 6597
34 libdispatch.dylib 0x01b9662d 0x1b94000 + 9773
35 libobjc.A.dylib 0x3a4024d5 _class_initialize + 533
36 libobjc.A.dylib 0x3a40805b lookUpImpOrForward + 251
37 libobjc.A.dylib 0x3a407f53 _class_lookupMethodAndLoadCache3 + 31
38 libobjc.A.dylib 0x3a40e1d7 _objc_msgSend_uncached + 23
39 CppCode 0x0011182d 0xd1000 + 264237
40 UIKit 0x2fe3a52b -[UIViewController loadViewIfRequired] + 599
41 UIKit 0x2fe3a299 -[UIViewController view] + 21
42 UIKit 0x2ffc3585 -[UINavigationController _startCustomTransition:] + 625
43 UIKit 0x2fee34d3 -[UINavigationController _startDeferredTransitionIfNeeded:] + 419
44 UIKit 0x2fee32d9 -[UINavigationController __viewWillLayoutSubviews] + 41
45 UIKit 0x2fee326d -[UILayoutContainerView layoutSubviews] + 181
46 UIKit 0x2fe37a6b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 511
47 QuartzCore 0x2f85fa09 -[CALayer layoutSublayers] + 133
48 QuartzCore 0x2f85b3e1 CA::Layer::layout_if_needed(CA::Transaction*) + 357
49 QuartzCore 0x2f85b269 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 13
50 QuartzCore 0x2f85ac4d CA::Context::commit_transaction(CA::Transaction*) + 221
51 QuartzCore 0x2f85aa51 CA::Transaction::commit() + 321
52 QuartzCore 0x2f854929 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 53
53 CoreFoundation 0x2c93fd93 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 19
54 CoreFoundation 0x2c93d44f __CFRunLoopDoObservers + 275
55 CoreFoundation 0x2c93d857 __CFRunLoopRun + 911
56 CoreFoundation 0x2c88b3bd CFRunLoopRunSpecific + 473
57 CoreFoundation 0x2c88b1cf CFRunLoopRunInMode + 103
58 GraphicsServices 0x33c200a5 GSEventRunModal + 133
59 UIKit 0x2fe997ad UIApplicationMain + 1437
60 CppCode 0x0011f619 0xd1000 + 321049
61 libdyld.dylib 0x3a981aad start + 1
Hello have crash app in IOS
This log:
2015-01-15 13:23:32.490 App[23898:1611888] <Google> Category methods are not loaded. Make sure you link the Google Mobile Ads library using one of the -ObjC, -force_load, or -all_load linker flags. See https://developers.google.com/mobile-ads-sdk/docs/#ios for more information.
2015-01-15 13:23:34.526 App[23898:1611888] registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.
2015-01-15 13:23:34.802 App[23898:1611888] +[NSDecimalNumber gad_negativeOne]: unrecognized selector sent to class 0x7d7400
2015-01-15 13:23:34.805 App[23898:1611888] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSDecimalNumber gad_negativeOne]: unrecognized selector sent to class 0x7d7400'
*** First throw call stack:
(
0 CoreFoundation 0x03278946 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x02be0a97 objc_exception_throw + 44
2 CoreFoundation 0x03280465 +[NSObject(NSObject) doesNotRecognizeSelector:] + 277
3 CoreFoundation 0x031c93e7 ___forwarding___ + 1047
4 CoreFoundation 0x031c8fae _CF_forwarding_prep_0 + 14
5 App 0x000872ea -[GADStatisticDictionary decrementNumberForKey:shouldNotifyDelegate:] + 58
6 App 0x0007cc75 -[GADApplication init] + 512
7 App 0x0007ca45 __35+[GADApplication sharedApplication]_block_invoke + 55
8 libdispatch.dylib 0x03ecde2f _dispatch_client_callout + 14
9 libdispatch.dylib 0x03eb876c dispatch_once_f + 363
10 libdispatch.dylib 0x03eb85fc dispatch_once + 31
11 App 0x0007ca0c +[GADApplication sharedApplication] + 113
12 App 0x000780cd +[GADSlot initialize] + 67
13 libobjc.A.dylib 0x02be1461 _class_initialize + 576
14 libobjc.A.dylib 0x02be9fe5 lookUpImpOrForward + 339
15 libobjc.A.dylib 0x02be9e8d _class_lookupMethodAndLoadCache3 + 55
16 libobjc.A.dylib 0x02bf412f objc_msgSend + 139
17 App 0x00075f6a -[GADBannerView commonInitWithAdSize:] + 42
18 App 0x0007626e -[GADBannerView initWithCoder:] + 163
19 UIKit 0x00c5205e -[UIClassSwapper initWithCoder:] + 239
20 UIKit 0x00de7f1a UINibDecoderDecodeObjectForValue + 739
21 UIKit 0x00de7c2f -[UINibDecoder decodeObjectForKey:] + 371
22 UIKit 0x00c51bf1 -[UIRuntimeConnection initWithCoder:] + 189
23 UIKit 0x00de7f1a UINibDecoderDecodeObjectForValue + 739
24 UIKit 0x00de811c UINibDecoderDecodeObjectForValue + 1253
25 UIKit 0x00de7c2f -[UINibDecoder decodeObjectForKey:] + 371
26 UIKit 0x00c50ea7 -[UINib instantiateWithOwner:options:] + 1164
27 UIKit 0x00a73624 -[UIViewController _loadViewFromNibNamed:bundle:] + 270
28 UIKit 0x00a73dbb -[UIViewController loadView] + 295
29 UIKit 0x00a73fef -[UIViewController loadViewIfRequired] + 78
30 UIKit 0x00a74595 -[UIViewController view] + 35
31 UIKit 0x0096b825 -[UIWindow addRootViewControllerViewIfPossible] + 66
32 UIKit 0x0096bc99 -[UIWindow _setHidden:forced:] + 287
33 UIKit 0x0096bf50 -[UIWindow _orderFrontWithoutMakingKey] + 49
34 UIKit 0x0097a28d -[UIWindow makeKeyAndVisible] + 80
35 UIKit 0x00917776 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3108
36 UIKit 0x0091ac0d -[UIApplication _runWithMainScene:transitionContext:completion:] + 1639
37 UIKit 0x009337d0 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
38 UIKit 0x0091981f -[UIApplication workspaceDidEndTransaction:] + 155
39 FrontBoardServices 0x05b799de __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
40 FrontBoardServices 0x05b7946f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
41 FrontBoardServices 0x05b8b425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
42 CoreFoundation 0x0319c1c0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
43 CoreFoundation 0x03191ad3 __CFRunLoopDoBlocks + 195
44 CoreFoundation 0x03191238 __CFRunLoopRun + 936
45 CoreFoundation 0x03190bcb CFRunLoopRunSpecific + 443
46 CoreFoundation 0x031909fb CFRunLoopRunInMode + 123
47 UIKit 0x009191e4 -[UIApplication _run] + 571
48 UIKit 0x0091c8b6 UIApplicationMain + 1526
49 App 0x0005991d main + 141
50 libdyld.dylib 0x03ef9ac9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Try to add -ObjC to Other Linker Flags in the Build Settings tab.
Here is the crash report not sure why
Incident Identifier: 8F69B0C7-F57D-40C7-B8E7-7A846EDCFE2E
CrashReporter Key: e18182a2b39e52acee70b63eb8a627bf2e6392ec
Hardware Model: iPad2,2
Process: androppo [1105]
Path: /private/var/mobile/Containers/Bundle/Application/EA41AE7C-D8E6-49E3-B124-6FDA7F51A4BD/androppo.app/androppo
Identifier: buzoo.jp.roppow
Version: 1.1 (1.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-10-22 12:36:38.195 +0700
Launch Time: 2014-10-22 12:36:37.387 +0700
OS Version: iOS 8.1 (12B410)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Last Exception Backtrace:
0 CoreFoundation 0x25d69d62 __exceptionPreprocess + 122
1 libobjc.A.dylib 0x33949c72 objc_exception_throw + 34
2 CoreFoundation 0x25d6f144 +[NSObject(NSObject) doesNotRecognizeSelector:] + 184
3 CoreFoundation 0x25d6d104 ___forwarding___ + 708
4 CoreFoundation 0x25c9e934 _CF_forwarding_prep_0 + 20
5 androppo 0x000def1c -[GADStatisticDictionary decrementNumberForKey:shouldNotifyDelegate:] + 68
6 androppo 0x000d3f30 -[GADApplication init] + 588
7 androppo 0x000d3cb8 __35+[GADApplication sharedApplication]_block_invoke + 40
8 libdispatch.dylib 0x33eaa40a _dispatch_client_callout + 18
9 libdispatch.dylib 0x33eb79e2 dispatch_once_f$VARIANT$mp + 58
10 androppo 0x000d3c88 +[GADApplication sharedApplication] + 148
11 androppo 0x000cf810 +[GADSlot initialize] + 72
12 libobjc.A.dylib 0x3394a4c0 _class_initialize + 532
13 libobjc.A.dylib 0x33950042 lookUpImpOrForward + 250
14 libobjc.A.dylib 0x3394ff3a _class_lookupMethodAndLoadCache3 + 30
15 libobjc.A.dylib 0x339561f4 _objc_msgSend_uncached + 20
16 androppo 0x000cd760 -[GADBannerView commonInitWithAdSize:] + 56
17 androppo 0x000cd9e0 -[GADBannerView initWithFrame:adSize:] + 164
18 androppo 0x000cdbbc -[GADBannerView initWithAdSize:] + 108
19 androppo 0x0007a9d8 -[MainPageVC addBannerOfAdmob] (MainPageVC.m:810)
20 androppo 0x00075bda -[MainPageVC viewDidLoad] (MainPageVC.m:105)
21 UIKit 0x2920e700 -[UIViewController loadViewIfRequired] + 596
22 UIKit 0x292b85a0 -[UINavigationController _layoutViewController:] + 28
23 UIKit 0x292b84c8 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 224
24 UIKit 0x292b7a4c -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
25 UIKit 0x292b7786 -[UINavigationController _startDeferredTransitionIfNeeded:] + 574
26 UIKit 0x292b74ec -[UINavigationController __viewWillLayoutSubviews] + 40
27 UIKit 0x292b7484 -[UILayoutContainerView layoutSubviews] + 180
28 UIKit 0x2920bc1a -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 510
29 QuartzCore 0x28c36f60 -[CALayer layoutSublayers] + 132
30 QuartzCore 0x28c3294c CA::Layer::layout_if_needed(CA::Transaction*) + 356
31 QuartzCore 0x28c327d4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 12
32 QuartzCore 0x28c321c2 CA::Context::commit_transaction(CA::Transaction*) + 218
33 QuartzCore 0x28c31fcc CA::Transaction::commit() + 320
34 UIKit 0x2946fa58 -[UIApplication _reportMainSceneUpdateFinished:] + 40
35 UIKit 0x294707f0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2496
36 UIKit 0x2947ac34 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 32
37 UIKit 0x2946ec26 -[UIApplication workspaceDidEndTransaction:] + 126
38 FrontBoardServices 0x2c4920dc __31-[FBSSerialQueue performAsync:]_block_invoke + 8
39 CoreFoundation 0x25d30608 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 8
40 CoreFoundation 0x25d2f8cc __CFRunLoopDoBlocks + 212
41 CoreFoundation 0x25d2e086 __CFRunLoopRun + 782
42 CoreFoundation 0x25c7b97c CFRunLoopRunSpecific + 472
43 CoreFoundation 0x25c7b78e CFRunLoopRunInMode + 102
44 UIKit 0x29272b82 -[UIApplication _run] + 554
45 UIKit 0x2926d97c UIApplicationMain + 1436
46 androppo 0x0007479a main (main.m:16)
47 androppo 0x000746ac start + 36
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x33faadfc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3402ad0e pthread_kill + 58
2 libsystem_c.dylib 0x33f4a934 abort + 72
3 libc++abi.dylib 0x33156bb8 abort_message + 84
4 libc++abi.dylib 0x3317066a default_terminate_handler() + 262
5 libobjc.A.dylib 0x33949f0e _objc_terminate() + 190
6 libc++abi.dylib 0x3316ddec std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x3316d5ac __cxa_throw + 108
8 libobjc.A.dylib 0x33949d46 objc_exception_throw + 246
9 CoreFoundation 0x25d6f144 +[NSObject(NSObject) doesNotRecognizeSelector:] + 184
10 CoreFoundation 0x25d6d104 ___forwarding___ + 708
11 CoreFoundation 0x25c9e934 _CF_forwarding_prep_0 + 20
12 androppo 0x000def1c -[GADStatisticDictionary decrementNumberForKey:shouldNotifyDelegate:] + 68
13 androppo 0x000d3f30 -[GADApplication init] + 588
14 androppo 0x000d3cb8 __35+[GADApplication sharedApplication]_block_invoke + 40
15 libdispatch.dylib 0x33eaa40c _dispatch_client_callout + 20
16 libdispatch.dylib 0x33eb79e2 dispatch_once_f$VARIANT$mp + 58
17 androppo 0x000d3c88 +[GADApplication sharedApplication] + 148
18 androppo 0x000cf810 +[GADSlot initialize] + 72
19 libobjc.A.dylib 0x3394a4c0 _class_initialize + 532
20 libobjc.A.dylib 0x33950042 lookUpImpOrForward + 250
21 libobjc.A.dylib 0x3394ff3a _class_lookupMethodAndLoadCache3 + 30
22 libobjc.A.dylib 0x339561f6 _objc_msgSend_uncached + 22
23 androppo 0x000cd760 -[GADBannerView commonInitWithAdSize:] + 56
24 androppo 0x000cd9e0 -[GADBannerView initWithFrame:adSize:] + 164
25 androppo 0x000cdbbc -[GADBannerView initWithAdSize:] + 108
26 androppo 0x0007a9d8 -[MainPageVC addBannerOfAdmob] (MainPageVC.m:810)
27 androppo 0x00075bda -[MainPageVC viewDidLoad] (MainPageVC.m:105)
28 UIKit 0x2920e700 -[UIViewController loadViewIfRequired] + 596
29 UIKit 0x292b85a0 -[UINavigationController _layoutViewController:] + 28
30 UIKit 0x292b84c8 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 224
31 UIKit 0x292b7a4c -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
32 UIKit 0x292b7786 -[UINavigationController _startDeferredTransitionIfNeeded:] + 574
33 UIKit 0x292b74ec -[UINavigationController __viewWillLayoutSubviews] + 40
34 UIKit 0x292b7484 -[UILayoutContainerView layoutSubviews] + 180
35 UIKit 0x2920bc1a -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 510
36 QuartzCore 0x28c36f60 -[CALayer layoutSublayers] + 132
37 QuartzCore 0x28c3294c CA::Layer::layout_if_needed(CA::Transaction*) + 356
38 QuartzCore 0x28c327d4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 12
39 QuartzCore 0x28c321c2 CA::Context::commit_transaction(CA::Transaction*) + 218
40 QuartzCore 0x28c31fcc CA::Transaction::commit() + 320
41 UIKit 0x2946fa58 -[UIApplication _reportMainSceneUpdateFinished:] + 40
42 UIKit 0x294707f0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2496
43 UIKit 0x2947ac34 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 32
44 UIKit 0x2946ec28 -[UIApplication workspaceDidEndTransaction:] + 128
45 FrontBoardServices 0x2c4920de __31-[FBSSerialQueue performAsync:]_block_invoke + 10
46 CoreFoundation 0x25d3060a __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 10
47 CoreFoundation 0x25d2f8cc __CFRunLoopDoBlocks + 212
48 CoreFoundation 0x25d2e086 __CFRunLoopRun + 782
49 CoreFoundation 0x25c7b97c CFRunLoopRunSpecific + 472
50 CoreFoundation 0x25c7b78e CFRunLoopRunInMode + 102
51 UIKit 0x29272b82 -[UIApplication _run] + 554
52 UIKit 0x2926d97c UIApplicationMain + 1436
53 androppo 0x0007479a main (main.m:16)
54 androppo 0x000746ac start + 36
This happened when I tried to run the app's .ipa through profile mode or window->devices, then drag the .ipa file to my device's app list. Yet It didn't happen if it ran in normal mode (cmd + r). I have no idea about the crash log and what caused the crash happened. Could someone help me out, I must fix the issues today and submit to Itunes Connect. I would really appreciate the help. Thanks.
after I upgraded xcode to new version (6.0.1), i encurrend into an NSUnknownKeyException when running my app.
Looking around for a solution, i found out that usually this issue comes up for "dead" outlet reference in the xib, but in my case occurs when i fetch data from an sqlite database. I use FMDB and BZObjectStore libraries for working with my db.
Here is my console output:
2014-10-15 15:30:24.894 PBWines[59418:428758] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<BZObjectStoreRelationshipModel 0x79f65420> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key hash.'
*** First throw call stack:
(
0 CoreFoundation 0x02485df6 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x0210fa97 objc_exception_throw + 44
2 CoreFoundation 0x02485a11 -[NSException raise] + 17
3 Foundation 0x01d97d5e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x01cf3d88 _NSSetUsingKeyValueSetter + 115
5 Foundation 0x01cf3d0d -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 PBWines 0x00131de8 -[BZObjectStoreModelMapper select:condition:db:] + 1336
7 PBWines 0x00134c02 -[BZObjectStoreModelMapper relationshipObjectsWithCondition:relationshipRuntime:db:] + 162
8 PBWines 0x001346be -[BZObjectStoreModelMapper relationshipObjectsWithObject:attribute:relationshipRuntime:db:] + 686
9 PBWines 0x00146a31 -[BZObjectStoreReferenceMapper saveObjectsSub:db:error:] + 15361
10 PBWines 0x00142de2 -[BZObjectStoreReferenceMapper saveObjects:db:error:] + 274
11 PBWines 0x0014c06d -[BZObjectStoreReferenceMapper registerRuntime:db:error:] + 925
12 PBWines 0x0014b3d8 -[BZObjectStoreReferenceMapper runtimeWithClazz:db:error:] + 232
13 PBWines 0x001401a9 -[BZObjectStoreReferenceMapper fetchObjects:condition:db:error:] + 233
14 PBWines 0x0010cbb7 __46-[BZObjectStore fetchObjects:condition:error:]_block_invoke + 231
15 PBWines 0x001083c7 __40-[BZObjectStore inTransactionWithBlock:]_block_invoke + 279
16 PBWines 0x00194bf1 __46-[FMDatabaseQueue beginTransaction:withBlock:]_block_invoke + 273
17 libdispatch.dylib 0x02b6ae1f _dispatch_client_callout + 14
18 libdispatch.dylib 0x02b4f5bf _dispatch_barrier_sync_f_invoke + 144
19 libdispatch.dylib 0x02b4ecf3 dispatch_barrier_sync_f + 105
20 libdispatch.dylib 0x02b4f6cf dispatch_barrier_sync + 54
21 PBWines 0x00194a85 -[FMDatabaseQueue beginTransaction:withBlock:] + 197
22 PBWines 0x00194e8c -[FMDatabaseQueue inTransaction:] + 108
23 PBWines 0x001081ce -[BZObjectStore inTransactionWithBlock:] + 382
24 PBWines 0x0010c92a -[BZObjectStore fetchObjects:condition:error:] + 410
25 PBWines 0x000a2d7e -[PBWPaesiViewController viewDidLoad] + 702
26 UIKit 0x00c50d54 -[UIViewController loadViewIfRequired] + 771
27 UIKit 0x00c869cd -[UINavigationController _layoutViewController:] + 42
28 UIKit 0x00c86f3c -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 235
29 UIKit 0x00c87040 -[UINavigationController _startTransition:fromViewController:toViewController:] + 90
30 UIKit 0x00c87fdb -[UINavigationController _startDeferredTransitionIfNeeded:] + 669
31 UIKit 0x00c88c52 -[UINavigationController __viewWillLayoutSubviews] + 57
32 UIKit 0x00dfaebc -[UILayoutContainerView layoutSubviews] + 213
33 UIKit 0x00b849c0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 608
34 libobjc.A.dylib 0x02125771 -[NSObject performSelector:withObject:] + 70
35 QuartzCore 0x0294827f -[CALayer layoutSublayers] + 152
36 QuartzCore 0x0293c105 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 397
37 QuartzCore 0x0293bf60 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
38 QuartzCore 0x0289a676 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 284
39 QuartzCore 0x0289ba3c _ZN2CA11Transaction6commitEv + 392
40 QuartzCore 0x02961789 +[CATransaction flush] + 52
41 UIKit 0x00af77e6 -[UIApplication _reportMainSceneUpdateFinished:] + 39
42 UIKit 0x00af8761 -[UIApplication _runWithMainScene:transitionContext:completion:] + 3163
43 UIKit 0x00b10d30 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
44 UIKit 0x00af6d7f -[UIApplication workspaceDidEndTransaction:] + 155
45 FrontBoardServices 0x04ca59de __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
46 FrontBoardServices 0x04ca546f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
47 FrontBoardServices 0x04cb7425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
48 CoreFoundation 0x023a97a0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
49 CoreFoundation 0x0239f0b3 __CFRunLoopDoBlocks + 195
50 CoreFoundation 0x0239ef0b __CFRunLoopRun + 2715
51 CoreFoundation 0x0239e1ab CFRunLoopRunSpecific + 443
52 CoreFoundation 0x0239dfdb CFRunLoopRunInMode + 123
53 UIKit 0x00af6744 -[UIApplication _run] + 571
54 UIKit 0x00af9e16 UIApplicationMain + 1526
55 PBWines 0x000bb7ed main + 141
56 libdyld.dylib 0x02b96ac9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Thanks in advance for help.
I've released BZObjectStore 1.3.13.
Can you run 'pod update' and try again?
Thanks
My app was recently rejected for a crash when loading a tableview. I could only reproduce the crash when running an ad-hoc build. Here's the crash log:
Last Exception Backtrace:
0 CoreFoundation 0x30ecbe7e __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3b2286c2 objc_exception_throw + 34
2 CoreFoundation 0x30ecf7b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x30ece0aa ___forwarding___ + 702
4 CoreFoundation 0x30e1cdc4 __forwarding_prep_0___ + 20
5 HSHacks 0x0011a368 -[FRepo initWithRepoInfo:andPersistence:] (FRepo.m:51)
6 HSHacks 0x00119b58 -[FRepoManager getLocalRepo:] (FRepoManager.m:85)
7 HSHacks 0x0011a1f0 +[FRepoManager getRepo:] (FRepoManager.m:126)
8 HSHacks 0x00132144 -[Firebase initWithUrl:] (Firebase.m:50)
9 HSHacks 0x000d0d8c -[ChatViewController viewDidLoad] (ChatViewController.m:61)
10 UIKit 0x33654956 -[UIViewController loadViewIfRequired] + 514
11 UIKit 0x33654714 -[UIViewController view] + 20
12 UIKit 0x3377bd8a -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 350
13 UIKit 0x3377bc1e -[UITabBarController transitionFromViewController:toViewController:] + 34
14 UIKit 0x3377bb2a -[UITabBarController _setSelectedViewController:] + 254
15 UIKit 0x33846840 -[UITabBarController _tabBarItemClicked:] + 268
16 UIKit 0x33684d9e -[UIApplication sendAction:to:from:forEvent:] + 86
17 UIKit 0x33684d3a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 34
18 UIKit 0x338466f6 -[UITabBar _sendAction:withEvent:] + 366
19 UIKit 0x33684d9e -[UIApplication sendAction:to:from:forEvent:] + 86
20 UIKit 0x33684d3a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 34
21 UIKit 0x33684d0e -[UIControl sendAction:to:forEvent:] + 42
22 UIKit 0x3367073e -[UIControl _sendActionsForEvents:withEvent:] + 370
23 UIKit 0x33684d9e -[UIApplication sendAction:to:from:forEvent:] + 86
24 UIKit 0x33684d3a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 34
25 UIKit 0x33684d0e -[UIControl sendAction:to:forEvent:] + 42
26 UIKit 0x3367073e -[UIControl _sendActionsForEvents:withEvent:] + 370
27 UIKit 0x33684756 -[UIControl touchesEnded:withEvent:] + 590
28 UIKit 0x3364819c _UIGestureRecognizerUpdate + 5524
29 CoreFoundation 0x30e96f64 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16
30 CoreFoundation 0x30e948f2 __CFRunLoopDoObservers + 282
31 CoreFoundation 0x30e94c3e __CFRunLoopRun + 734
32 CoreFoundation 0x30dff46c CFRunLoopRunSpecific + 520
33 CoreFoundation 0x30dff24e CFRunLoopRunInMode + 102
34 GraphicsServices 0x35b392e6 GSEventRunModal + 134
35 UIKit 0x336b4840 UIApplicationMain + 1132
36 HSHacks 0x000d7efa main (main.m:16)
37 libdyld.dylib 0x3b721ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3b7d81fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3b83fa4e pthread_kill + 54
2 libsystem_c.dylib 0x3b789028 abort + 72
3 libc++abi.dylib 0x3abd798a abort_message + 70
4 libc++abi.dylib 0x3abf06e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3b228936 _objc_terminate() + 190
6 libc++abi.dylib 0x3abee1b0 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x3abedd12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3b22880a objc_exception_rethrow + 38
9 CoreFoundation 0x30dff4e2 CFRunLoopRunSpecific + 638
10 CoreFoundation 0x30dff24e CFRunLoopRunInMode + 102
11 GraphicsServices 0x35b392e6 GSEventRunModal + 134
12 UIKit 0x336b4840 UIApplicationMain + 1132
13 HSHacks 0x000d7efa main (main.m:16)
14 libdyld.dylib 0x3b721ab4 start + 0
Anybody have any idea what's going on?
I think it may have something to do with this code in viewDidLoad:
[self.firebase observeEventType:FEventTypeChildAdded withBlock:^(FDataSnapshot *snapshot) {
// Add the chat message to the array.
[self.chat addObject:snapshot.value];
// Reload the table view so the new message will show up.
[SVProgressHUD dismiss];
[self.chatTableView reloadData];
self.chatTextField.userInteractionEnabled = TRUE;
[self.chatTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:self.chat.count-1 inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:NO];
}];
}