I installed my app into an iPhone via Xcode, then disconnect the iPhone from Mac, lauch the app ... crash.
Re-connect the iPhone to Mac, open Xcode > Devices > The iPhone > View Device Logs, but got the following result, it cannot symbolicate the crash in my code.
I also tried using the symbolicatecrash command, got the same result.
Last Exception Backtrace:
0 CoreFoundation 0x1c623b38 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x1b8ab062 objc_exception_throw + 34
2 CoreFoundation 0x1c623a80 +[NSException raise:format:] + 104
3 我的AppName 0x00091410 0x89000 + 33808
4 我的AppName 0x000d897a 0x89000 + 326010
5 我的AppName 0x000d849a 0x89000 + 324762
6 我的AppName 0x0009fb0c 0x89000 + 92940
7 我的AppName 0x000dc9f6 0x89000 + 342518
8 libdispatch.dylib 0x1bcf1792 _dispatch_call_block_and_release + 6
9 libdispatch.dylib 0x1bcf177e _dispatch_client_callout + 18
10 libdispatch.dylib 0x1bcf5d00 _dispatch_main_queue_callback_4CF + 898
11 CoreFoundation 0x1c5dfd64 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 4
12 CoreFoundation 0x1c5dde14 __CFRunLoopRun + 844
13 CoreFoundation 0x1c5310ea CFRunLoopRunSpecific + 466
14 CoreFoundation 0x1c530f0c CFRunLoopRunInMode + 100
15 GraphicsServices 0x1dcdbb3c GSEventRunModal + 76
16 UIKit 0x218b5e7e UIApplicationMain + 146
17 我的AppName 0x000bfe56 0x89000 + 224854
18 libdyld.dylib 0x1bd1e4e6 _dyld_process_info_notify_release + 26
My build-settings:
Deployment Postproccessing NO
Strip Debug Symbols During Copy NO
Strip Linked Product YES
Strip Style All Symbols
Debug Information Format DWARF with dSYM File
Debug Information Level Compiler default
Symbols Hidden by Default NO
Finally, I find out the reason: the PRODUCT_NAME includes Chinese charactors ....
Related
We have been trying to run our app to prepare for iOS 16 but so far no luck. The app runs perfectly in Xcode 13. Also when we download the app from App Store to iOS 16 beta device, it works with no problem.
What we face with new Xcode 14 Beta 5 is the app runs till the first view controller then we get a weird error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application circumvented Objective-C runtime dealloc initiation for <UINavigationController> object.'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff800427380 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80004dbaf objc_exception_throw + 48
2 Foundation 0x00007ff800b876ac _userInfoForFileAndLine + 0
3 UIKitCore 0x0000000124447d4e -[UIViewController dealloc] + 1475
4 UIKitCore 0x0000000124359e30 -[UINavigationController dealloc] + 389
5 libobjc.A.dylib 0x00007ff80004b6a1 _ZN11objc_object17sidetable_releaseEbb + 203
6 libobjc.A.dylib 0x00007ff80004be64 _ZN19AutoreleasePoolPage12releaseUntilEPP11objc_object + 180
7 libobjc.A.dylib 0x00007ff80004bcad objc_autoreleasePoolPop + 203
8 UIKitCore 0x00000001252e54bf -[_UIAfterCACommitBlock run] + 80
9 UIKitCore 0x00000001252e59a4 -[_UIAfterCACommitQueue flush] + 190
10 UIKitCore 0x0000000124d40730 _runAfterCACommitDeferredBlocks + 782
11 UIKitCore 0x0000000124d2eede _cleanUpAfterCAFlushAndRunDeferredBlocks + 96
12 UIKitCore 0x0000000124d64abb _afterCACommitHandler + 72
13 CoreFoundation 0x00007ff800386015 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
14 CoreFoundation 0x00007ff800380982 __CFRunLoopDoObservers + 515
15 CoreFoundation 0x00007ff800380ecd __CFRunLoopRun + 1161
16 CoreFoundation 0x00007ff800380667 CFRunLoopRunSpecific + 560
17 GraphicsServices 0x00007ff809bfc28a GSEventRunModal + 139
18 UIKitCore 0x0000000124d30621 -[UIApplication _run] + 994
19 UIKitCore 0x0000000124d354fd UIApplicationMain + 123
20 xxxxxx 0x000000010e9aa830 main + 96
21 dyld 0x00000001136e52bf start_sim + 10
22 ??? 0x00000001148c751e 0x0 + 4639716638
)
OK, So I fixed my own problem. For me it was the code in the dependency file I was using in my pods. So, simply search for
+ (void)initialize {
}
which is most possibly causing the error.
We have this crash in our app that has this kind of log.
"date= 2013-02-03 07:12:17 +0000;
buildVersion = 1.0.0;
model = iPhone;
systemName = iPhone OS;
systemVersion = 5.1.1;
timeSpent = 1008.14;
uid = 63743f3790afda4d3bffc7beb8877fa9cfbfedfe;
reason = -[__NSCFType kbViewRecoverNormalState]: unrecognized selector sent to instance 0xdd1dfe0;
stackTrace =
(
0 CoreFoundation 0x371288a7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x34e2d259 objc_exception_throw + 32
2 CoreFoundation 0x3712ba9b -[NSObject doesNotRecognizeSelector:] + 174
3 CoreFoundation 0x3712a915 ___forwarding___ + 300
4 CoreFoundation 0x37085650 _CF_forwarding_prep_0 + 48
5 SogouInputIPhone4.dylib 0x01a1982b -[AppStateMonitor exitSogouInputMethod] + 190
6 SogouInputIPhone4.dylib 0x01a196e5 -[AppStateMonitor didEnterBackground] + 20
7 Foundation 0x3798d4ff __57 -[NSNotificationCenteraddObserver:selector:name:object:] _block_invoke_0 + 18
8 CoreFoundation 0x370f4547 ___CFXNotificationPost_block_invoke_0 + 70
9 CoreFoundation 0x37080097 _CFXNotificationPost + 1406
10 Foundation 0x379013eb -[NSNotificationCenterpostNotificationName:object:userInfo:] + 66
11 UIKit 0x30e6c255 -[UIApplication _handleApplicationSuspend:eventInfo:] +792
12 UIKit 0x30dfceff -[UIApplication handleEvent:withNewEvent:] + 2094
13 UIKit 0x30dfc567 -[UIApplication sendEvent:] + 54
14 UIKit 0x30dfbf3b _UIApplicationHandleEvent + 5826
15 GraphicsServices 0x3383e22b PurpleEventCallback + 882
16 CoreFoundation 0x370fc523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__+ 38
17 CoreFoundation 0x370fc4c5 __CFRunLoopDoSource1 + 140
18 CoreFoundation 0x370fb313 __CFRunLoopRun + 1370
19 CoreFoundation 0x3707e4a5 CFRunLoopRunSpecific + 300
20 CoreFoundation 0x3707e36d CFRunLoopRunInMode + 104
21 GraphicsServices 0x3383d439 GSEventRunModal + 136
22 UIKit 0x30e2acd5 UIApplicationMain + 1080
23 MyApp 0x0014506f _mh_execute_header + 295023
24 MyApp 0x000ff058 _mh_execute_header + 8280
);"
That is a custom crash log that is not symbolicated when we migrated to Xcode 4.5.
My question is, what is kbViewRecoverNormalState means? What class calls this selector? Since we can't read the stack trace clearly, we don't have any idea about this.
And is there any possible solution for this uninformative call stack? It is working on the device if it is connected to Xcode (debug/release). But when release on iTunes and/or created an IPA file, it doesn't work.
Thanks!
It seems like you are test your app in jailbroken device.
SogouInputIPhone4.dylib 0x01a1982b -[AppStateMonitor exitSogouInputMethod]
Its the SogouInputIPhone4 which cause the crash
I get this error:
2013-01-21 15:09:49.479 obtl[13136:403] An uncaught exception was raised
2013-01-21 15:09:49.484 obtl[13136:403] [<NSApplication 0x10012a600> valueForUndefinedKey:]: this class is not key value coding-compliant for the key managedObjectContext.
2013-01-21 15:09:49.493 obtl[13136:403] (
0 CoreFoundation 0x00007fff8c000f56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff934f4d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c08b1b9 -[NSException raise] + 9
3 Foundation 0x00007fff8ef65703 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 240
4 Foundation 0x00007fff8ee9c38e _NSGetUsingKeyValueGetter + 108
5 Foundation 0x00007fff8ee9c315 -[NSObject(NSKeyValueCoding) valueForKey:] + 392
6 AppKit 0x00007fff938596ef -[NSApplication(NSScripting) valueForKey:] + 510
7 Foundation 0x00007fff8eebbda2 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 348
8 AppKit 0x00007fff936572fa -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] + 654
9 AppKit 0x00007fff93656fe4 -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 171
10 AppKit 0x00007fff93656c52 -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] + 1181
11 AppKit 0x00007fff93648f8f -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 591
12 AppKit 0x00007fff936422a1 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079
13 AppKit 0x00007fff936388bb loadNib + 322
14 AppKit 0x00007fff93637db8 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
15 AppKit 0x00007fff93637cd3 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
16 AppKit 0x00007fff93637c16 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364
17 AppKit 0x00007fff938a8cd7 NSApplicationMain + 398
18 obtl 0x0000000100001b52 main + 34
19 obtl 0x0000000100001b24 start + 52
)
2013-01-21 15:09:49.503 obtl[13136:403] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSApplication 0x10012a600> valueForUndefinedKey:]: this class is not key value coding-compliant for the key managedObjectContext.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8c000f56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff934f4d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c08b1b9 -[NSException raise] + 9
3 Foundation 0x00007fff8ef65703 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 240
4 Foundation 0x00007fff8ee9c38e _NSGetUsingKeyValueGetter + 108
5 Foundation 0x00007fff8ee9c315 -[NSObject(NSKeyValueCoding) valueForKey:] + 392
6 AppKit 0x00007fff938596ef -[NSApplication(NSScripting) valueForKey:] + 510
7 Foundation 0x00007fff8eebbda2 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 348
8 AppKit 0x00007fff936572fa -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] + 654
9 AppKit 0x00007fff93656fe4 -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 171
10 AppKit 0x00007fff93656c52 -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] + 1181
11 AppKit 0x00007fff93648f8f -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 591
12 AppKit 0x00007fff936422a1 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079
13 AppKit 0x00007fff936388bb loadNib + 322
14 AppKit 0x00007fff93637db8 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
15 AppKit 0x00007fff93637cd3 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
16 AppKit 0x00007fff93637c16 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364
17 AppKit 0x00007fff938a8cd7 NSApplicationMain + 398
18 obtl 0x0000000100001b52 main + 34
19 obtl 0x0000000100001b24 start + 52
)
terminate called throwing an exception
Related information:
Mac OSX App (trying to aim for users with Snow Leopard to be able to use it as well).
Everything is bound appropriately to FileOwner.managedObjectContext and the appropriate entity. I have triple checked all of my tables, buttons, etc to make sure that they are attached to the right bindings.
I only have 1 window file.
I am using Xcode 4.5.2 on Mac Lion (without using Auto Layout). I am lost as to how to fix this-and yes I have researched a lot of the similar questions and have tried some of the same solutions to no avail.
From the crash log, it appears that you are loading a nib and that the nib tries to access a managedObjectContext property defined in the nib's owner. It is not found, so the crash. This is probably due to a wrong nib owner.
I would suggest to review your nib file:
the file's owner should be of type: NSApplication;
the file's owner should have a delegate outlet bound to the app delegate;
the app delegate should declare the managedObjectContext property.
my app crashes on iPad when I open a new view even though in the simulator it works like a charm.
Any help is strongly appreciated!
Thanks in advance
Console Output:
2012-07-18 10:32:19.783 Coverdale[3484:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]'
First throw call stack:
(0x3757688f 0x315eb259 0x374bf9db 0x37745 0x35c3f 0x306e3c8b 0x30708481 0x306ccbd5 0x3078f359 0x306d53b5 0x306d53d1 0x306d5263 0x3078f31f 0x307446cb 0x3074400f 0x3078dc05 0x3078c367 0x307e76a7 0x2c4fb 0x3075c93d 0x307d6627 0x33093933 0x3754aa33 0x3754a699 0x3754926f 0x374cc4a5 0x374cc36d 0x376c5439 0x306d8cd5 0x22103 0x220a8)
terminate called throwing an exception(lldb)
Crash Report
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3757688f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x315eb259 objc_exception_throw + 33
2 CoreFoundation 0x374bf9db -[__NSArrayM objectAtIndex:] + 271
3 Coverdale 0x00092745 -[PreparationViewController setDetails:newFile:] (PreparationViewController.m:376)
4 Coverdale 0x00090c3f -[PreparationViewController viewDidLoad] (PreparationViewController.m:70)
5 UIKit 0x306e3c8b -[UIViewController view] + 167
6 UIKit 0x30708481 -[UIViewController nextResponder] + 21
7 UIKit 0x306ccbd5 -[UIResponder _containsResponder:] + 37
8 UIKit 0x3078f359 -[UINavigationController defaultFirstResponder] + 57
9 UIKit 0x306d53b5 -[UIResponder(Internal) _deepestDefaultFirstResponder] + 25
10 UIKit 0x306d53d1 -[UIResponder(Internal) _deepestDefaultFirstResponder] + 53
11 UIKit 0x306d5263 -[UIResponder(Internal) _promoteDeepestDefaultFirstResponder] + 31
12 UIKit 0x3078f31f -[UIWindowController transitionViewDidStart:] + 83
13 UIKit 0x307446cb -[UITransitionView _didStartTransition] + 71
14 UIKit 0x3074400f -[UITransitionView transition:fromView:toView:] + 999
15 UIKit 0x3078dc05 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 4937
16 UIKit 0x3078c367 -[UIViewController presentViewController:withTransition:completion:] + 3123
17 UIKit 0x307e76a7 -[UIViewController presentModalViewController:animated:] + 31
18 Coverdale 0x000874fb -[IntroTableViewController tableView:didSelectRowAtIndexPath:] (IntroTableViewController.m:498)
19 UIKit 0x3075c93d -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 945
20 UIKit 0x307d6627 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 159
21 Foundation 0x33093933 __NSFireDelayedPerform + 415
22 CoreFoundation 0x3754aa33 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 15
23 CoreFoundation 0x3754a699 __CFRunLoopDoTimer + 365
24 CoreFoundation 0x3754926f __CFRunLoopRun + 1207
25 CoreFoundation 0x374cc4a5 CFRunLoopRunSpecific + 301
26 CoreFoundation 0x374cc36d CFRunLoopRunInMode + 105
27 GraphicsServices 0x376c5439 GSEventRunModal + 137
28 UIKit 0x306d8cd5 UIApplicationMain + 1081
29 Coverdale 0x0007d103 main (main.m:17)
30 Coverdale 0x0007d0a8 start + 40
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3291b32c __pthread_kill + 8
1 libsystem_c.dylib 0x34c90208 pthread_kill + 48
2 libsystem_c.dylib 0x34c89298 abort + 88
3 libc++abi.dylib 0x3229ef64 abort_message + 40
4 libc++abi.dylib 0x3229c346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x315eb350 _objc_terminate + 140
6 libc++abi.dylib 0x3229c3be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3229c44a std::terminate() + 14
8 libc++abi.dylib 0x3229d81e __cxa_rethrow + 82
9 libobjc.A.dylib 0x315eb2a2 objc_exception_rethrow + 6
10 CoreFoundation 0x374cc506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x374cc366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x376c5432 GSEventRunModal + 130
13 UIKit 0x306d8cce UIApplicationMain + 1074
14 Coverdale 0x0007d0fc main (main.m:17)
15 Coverdale 0x0007d0a0 start + 32
I deleted the App on the iPad and run it again.
It looks like that an array generated from a text file which i am reading out with componentsSeparatedByString: had less entries than i was accessing.
I have an app called "FirstAid" that crashes in the simulator and on a device. If I create a clean project called "FirstAid" that also crashes with the same report. Any other named app is fine.
I have done a clean, and rebuilt it but it still crashes.
How do I fix it?
2011-05-14 10:06:39.912 FirstAid[1217:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00ef55a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x01049313 objc_exception_throw + 44
2 CoreFoundation 0x00ef54e1 -[NSException raise] + 17
3 Foundation 0x008c7677 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x008c75e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x0034330c -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x00e6b8cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x00341d23 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x00343ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x0014917a -[UIApplication _loadMainNibFile] + 172
10 UIKit 0x00149cf4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 291
11 UIKit 0x00154617 -[UIApplication handleEvent:withNewEvent:] + 1533
12 UIKit 0x0014cabf -[UIApplication sendEvent:] + 71
13 UIKit 0x00151f2e _UIApplicationHandleEvent + 7576
14 GraphicsServices 0x013ce992 PurpleEventCallback + 1550
15 CoreFoundation 0x00ed6944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
16 CoreFoundation 0x00e36cf7 __CFRunLoopDoSource1 + 215
17 CoreFoundation 0x00e33f83 __CFRunLoopRun + 979
18 CoreFoundation 0x00e33840 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x00e33761 CFRunLoopRunInMode + 97
20 UIKit 0x001497d2 -[UIApplication _run] + 623
21 UIKit 0x00155c93 UIApplicationMain + 1160
22 FirstAid 0x00001cb9 main + 121
23 FirstAid 0x00001c35 start + 53
)
terminate called after throwing an instance of 'NSException'
This error may mean several things, but my bet is that some of your outlets (from IB) is broken. Examine your XIB-files + all their outlets and make sure they exist in your code as well.