Analyse Apple crash report - ios

My app is rejected during the review and I received a crash report.
They say that the App will crash at startup.
I have symbolized the crash report with Xcode 7.
I can't find the error. Can anybody help me?
Incident Identifier: 7F51C648-88CD-4140-8AEA-08E9738BC080
CrashReporter Key: 26c02c90683f836314c526cecc4cd8fa6f92528c
Hardware Model: xxx
Process: MyApp [594]
Path: /private/var/containers/Bundle/Application/DCA01744-B65D-4F46-BF63-6B55C050E90E/MyApp.app/MyApp
Identifier: any.MyApp
Version: 7 (6.5)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-04-16 12:43:47.47 -0700
Launch Time: 2016-04-16 12:43:45.45 -0700
OS Version: iOS 9.3.1 (13E238)
Report Version: 105
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000100036910
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 MyApp 0x0000000100036910 0x100024000 + 76048
1 MyApp 0x00000001000300a0 0x100024000 + 49312
2 MyApp 0x0000000100030198 0x100024000 + 49560
3 UIKit 0x0000000187778b40 -[UIViewController loadViewIfRequired] + 996
4 UIKit 0x0000000187839118 -[UINavigationController _layoutViewController:] + 72
5 UIKit 0x0000000187838ff0 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 416
6 UIKit 0x0000000187838238 -[UINavigationController _startTransition:fromViewController:toViewController:] + 144
7 UIKit 0x0000000187837ddc -[UINavigationController _startDeferredTransitionIfNeeded:] + 868
8 UIKit 0x0000000187837a04 -[UINavigationController __viewWillLayoutSubviews] + 60
9 UIKit 0x000000018783796c -[UILayoutContainerView layoutSubviews] + 208
10 UIKit 0x00000001877740e4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 656
11 QuartzCore 0x000000018511aa28 -[CALayer layoutSublayers] + 148
12 QuartzCore 0x0000000185115634 CA::Layer::layout_if_needed(CA::Transaction*) + 292
13 QuartzCore 0x00000001851154f4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
14 QuartzCore 0x0000000185114b24 CA::Context::commit_transaction(CA::Transaction*) + 252
15 QuartzCore 0x000000018511486c CA::Transaction::commit() + 512
16 QuartzCore 0x000000018510ddd8 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 80
17 CoreFoundation 0x00000001825ec7b0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
18 CoreFoundation 0x00000001825ea554 __CFRunLoopDoObservers + 372
19 CoreFoundation 0x0000000182514d30 CFRunLoopRunSpecific + 416
20 UIKit 0x00000001877e7834 -[UIApplication _run] + 460
21 UIKit 0x00000001877e1f70 UIApplicationMain + 204
22 MyApp 0x000000010006a5ec 0x100024000 + 288236
23 libdyld.dylib 0x00000001820b28b8 start + 4
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x00000001821d14d8 kevent_qos + 8
1 libdispatch.dylib 0x00000001820947d8 _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x0000000182083648 _dispatch_source_invoke + 0
Thread 2:
0 libsystem_kernel.dylib 0x00000001821d0b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000182299530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000182299020 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x00000001821d0b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000182299530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000182299020 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x00000001821d0b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000182299530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000182299020 start_wqthread + 4
Thread 5 name: com.apple.coremedia.player.async
Thread 5:
0 libsystem_kernel.dylib 0x00000001821b5014 semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001820923e8 _dispatch_semaphore_wait_slow + 244
2 MediaToolbox 0x00000001885ad6d0 fpa_AsyncMovieControlThread + 1948
3 CoreMedia 0x00000001849eeda0 figThreadMain + 272
4 libsystem_pthread.dylib 0x000000018229bb28 _pthread_body + 156
5 libsystem_pthread.dylib 0x000000018229ba8c _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000182299028 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x00000001821d0b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000182299530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000182299020 start_wqthread + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x00000001566207f8 x3: 0x0000000156548400
x4: 0x0000000000000007 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000830
x8: 0x0000000000000000 x9: 0x00000001a08300e0 x10: 0x000001a1a083a289 x11: 0x000000150000001f
x12: 0x0000000156508940 x13: 0x000021a1a083a289 x14: 0x0000000000000010 x15: 0x0000000073935b34
x16: 0x0000000181cb5ef0 x17: 0x0000000181cb68dc x18: 0x0000000000000000 x19: 0x000000015654e3e0
x20: 0xa00000000352e363 x21: 0x0000000156505ea0 x22: 0x00000001000b7e00 x23: 0x00000001000b6000
x24: 0x0000000156548400 x25: 0x0000000100321600 x26: 0x0000000100321600 x27: 0x0000000100321600
x28: 0xa00000000352e363 fp: 0x000000016fdd9df0 lr: 0x00000001000366ac
sp: 0x000000016fdd9d90 pc: 0x0000000100036910 cpsr: 0x60000000

These lines are your crash:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 MyApp 0x0000000100036910 0x100024000 + 76048
1 MyApp 0x00000001000300a0 0x100024000 + 49312
2 MyApp 0x0000000100030198 0x100024000 + 49560
The problem is that your crash log is not symbolicated. You can re-symbolicate using the DSYM file that was created when you built the archive for submission. If this DSYM is in your Spotlight search path, then you can re-symbolicate either in the Organizer, or the Devices window (drag the crash onto a device) or on the command line.
Command-line resymbolization is discussed here on Stack Overflow.

Form Apple Documentation:
Trace Trap [EXC_BREAKPOINT // SIGTRAP]
Similar to an Abnormal Exit, this exception is intended to give an
attached debugger the chance to interrupt the process at a specific
point in its execution. You can trigger this exception from your own
code using the __builtin_trap() function. If no debugger is attached,
the process is terminated and a crash report is generated.
Swift code will terminate the program with this exception type if it
detects an unexpected condition at runtime such as:
a non-optional type with a nil value a failed forced type conversion
Look at the Backtrace of the crashed thread to determine where the
unexpected condition was encountered. Additional information may have
also been logged to the device's console.
Sourse: https://developer.apple.com/library/ios/technotes/tn2151/_index.html
Hope this will help you.

Related

Why is my iOS crash report from a debug build only partially symbolicated?

I have a crash report from my app on my iPhone, and the stack in the report is unsymbolicated for my app's binary only. I'm not using an archive build to distribute to Test Flight or the App Store yet, so I just have a debug build.
Is there something I can do fully symbolicate my debug build's crash report?
Maybe I have a setting similar to strip debug symbols during copy setup wrong that's causing this problem? I only say that because someone mentioned it in another question, but it didn't seem to make a difference.
Here's the interesting part from the crash report:
Incident Identifier: 411B8299-C4B8-4748-B76B-8F24E479BBA4
CrashReporter Key: 3833a4b98976d8b0b8fcc5623a7dff4217fc4101
Hardware Model: iPhone12,8
Process: MyApp [27285]
Path: /private/var/containers/Bundle/Application/3F19D333-751B-4CFE-B648-B2F6E04BD866/MyApp.app/MyApp
Identifier: Something.MyApp
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: Something.MyApp [5248]
Date/Time: 2021-06-28 18:20:49.0345 -0700
Launch Time: 2021-06-28 18:20:42.5327 -0700
OS Version: iPhone OS 14.6 (18F72)
Release Type: User
Baseband Version: 2.05.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001c9832334 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001e727da9c pthread_kill + 272
2 libsystem_c.dylib 0x00000001a4a4fb90 abort + 104
3 libsystem_c.dylib 0x00000001a4a4f024 err + 0
4 MyApp 0x00000001021228d0 0x1020f8000 + 174288
5 MyApp 0x0000000102122874 0x1020f8000 + 174196
6 MyApp 0x0000000102122828 0x1020f8000 + 174120
7 MyApp 0x0000000102122800 0x1020f8000 + 174080
8 MyApp 0x0000000102121114 0x1020f8000 + 168212
9 MyApp 0x00000001021180e0 0x1020f8000 + 131296
10 MyApp 0x0000000102117010 0x1020f8000 + 126992
11 MyApp 0x000000010212c5f8 0x1020f8000 + 214520
12 MyApp 0x0000000102171174 0x1020f8000 + 495988
13 MyApp 0x000000010212a05c 0x1020f8000 + 204892
14 MyApp 0x00000001021689b0 0x1020f8000 + 461232
15 SpriteKit 0x00000001d01df780 -[SKScene _update:] + 364
16 SpriteKit 0x00000001d01bec50 -[SKRenderer _update:] + 844
17 SpriteKit 0x00000001d01be8d0 -[SKRenderer updateAtTime:] + 108
18 MyApp 0x0000000102103a9c 0x1020f8000 + 47772
19 MetalKit 0x00000001ce5d6778 -[MTKView draw] + 144
20 MetalKit 0x00000001ce5d2d14 -[MTKViewDisplayLinkTarget draw] + 40
21 QuartzCore 0x000000019e9047b8 CA::Display::DisplayLink::dispatch_items+ 83896 (unsigned long long, unsigned long long, unsigned long long) + 672
22 QuartzCore 0x000000019e9e37f4 display_timer_callback+ 997364 (__CFMachPort*, void*, long, void*) + 280
23 CoreFoundation 0x000000019b5f6a5c __CFMachPortPerform + 176
24 CoreFoundation 0x000000019b61c274 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
25 CoreFoundation 0x000000019b61b5f4 __CFRunLoopDoSource1 + 596
26 CoreFoundation 0x000000019b6151d8 __CFRunLoopRun + 2372
27 CoreFoundation 0x000000019b614360 CFRunLoopRunSpecific + 600
28 GraphicsServices 0x00000001b2c52734 GSEventRunModal + 164
29 UIKitCore 0x000000019e08f584 -[UIApplication _run] + 1072
30 UIKitCore 0x000000019e094df4 UIApplicationMain + 168
31 MyApp 0x0000000102168a44 0x1020f8000 + 461380
32 libdyld.dylib 0x000000019b2d0cf8 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 6 name: com.apple.uikit.eventfetch-thread
Thread 6:
0 libsystem_kernel.dylib 0x00000001c980d4fc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001c980c884 mach_msg + 76
2 CoreFoundation 0x000000019b61aeb0 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x000000019b614d50 __CFRunLoopRun + 1212
4 CoreFoundation 0x000000019b614360 CFRunLoopRunSpecific + 600
5 Foundation 0x000000019c901fdc -[NSRunLoop+ 32732 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x000000019c901ea8 -[NSRunLoop+ 32424 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x000000019e14412c -[UIEventFetcher threadMain] + 516
8 Foundation 0x000000019ca7332c __NSThread__start__ + 864
9 libsystem_pthread.dylib 0x00000001e727cbfc _pthread_start + 320
10 libsystem_pthread.dylib 0x00000001e7285758 thread_start + 8
Thread 7:
0 libsystem_pthread.dylib 0x00000001e7285744 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000030 x7: 0x0000000000000000
x8: 0x46025ab3c4edaa76 x9: 0x46025ab2c6bd92b6 x10: 0x0000000000000000 x11: 0x0000000000000037
x12: 0x00000000ffffffff x13: 0x0000000156bcafe0 x14: 0x0000000000000000 x15: 0x00000001fd88a6a8
x16: 0x0000000000000148 x17: 0x00000001025038c0 x18: 0x0000000105a17622 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x00000001025039a0 x22: 0x0000000102176a5e x23: 0x000000014dd18000
x24: 0x00000001f1799000 x25: 0x0000000000000000 x26: 0x0000000000000001 x27: 0x0000000283e0a200
x28: 0x000000015681d600 fp: 0x000000016dd04ba0 lr: 0x00000001e727da9c
sp: 0x000000016dd04b80 pc: 0x00000001c9832334 cpsr: 0x40000000
esr: 0x56000080 Address size fault
Binary Images:
0x1020f8000 - 0x10217ffff MyApp arm64 <b2aa8f67eb433d298ff722f4a4d98040> /var/containers/Bundle/Application/3F19D333-751B-4CFE-B648-B2F6E04BD866/MyApp.app/MyApp
0x102428000 - 0x102433fff libobjc-trampolines.dylib arm64e <26cb4bb90880358ba280192f8ed6d0ad> /usr/lib/libobjc-trampolines.dylib
...
I figured it out. I must have edited my build options at some point in the past, and I changed the Debug Information Format build option from DWARF with dSYM File to just DWARF for my debug build only. Once I rebuilt, all symbols were showing up.

Crash Report is not showing the code line of a crash in a background thread

I'm learning how to analyse crash reports. I'm purposely adding bugs to my swift app code and looking at the resultant crash reports. When the bug is in a block of code run in a background async thread the crash report does not identify the code line number of the crash.
Is it possible to get this line number from the crash?
Here's part of the crash report:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001020791fc
Triggered by Thread: 5
Filtered syslog:
None found
Global Trace Buffer (reverse chronological seconds):
2.965970 AppleJPEG 0x000000018300e26c [0x13e05f000] Created session
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 QuartzCore 0x00000001840921f4 slab_alloc + 392
1 QuartzCore 0x0000000184092058 magazine_alloc_ + 304
2 QuartzCore 0x0000000184092058 magazine_alloc_ + 304
3 QuartzCore 0x000000018408eee8 x_mem_alloc_bucket + 144
4 QuartzCore 0x000000018408eb94 CA::AttrList::set(unsigned int, _CAValueType, void const*) + 160
5 QuartzCore 0x0000000184092398 CA::Layer::setter(unsigned int, _CAValueType, void const*) + 208
6 QuartzCore 0x0000000184099ec4 -[CALayer setOpacity:] + 48
7 UIKit 0x00000001869a7678 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_2 + 1072
8 UIKit 0x000000018671b5b4 +[UIView(Animation) performWithoutAnimation:] + 80
9 UIKit 0x00000001869068d4 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 260
10 UIKit 0x0000000186a26334 +[UIView(Internal) _performBlockDelayingTriggeringResponderEvents:] + 220
11 UIKit 0x000000018690644c -[_UINavigationParallaxTransition animateTransition:] + 1060
12 UIKit 0x00000001868c0818 -[UINavigationController _startCustomTransition:] + 3544
13 UIKit 0x00000001867cbe40 -[UINavigationController _startDeferredTransitionIfNeeded:] + 688
14 UIKit 0x00000001867cbb1c -[UINavigationController __viewWillLayoutSubviews] + 60
15 UIKit 0x00000001867cba84 -[UILayoutContainerView layoutSubviews] + 208
16 UIKit 0x00000001867081e4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 656
17 QuartzCore 0x000000018409a994 -[CALayer layoutSublayers] + 148
18 QuartzCore 0x00000001840955d0 CA::Layer::layout_if_needed(CA::Transaction*) + 292
19 QuartzCore 0x0000000184095490 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
20 QuartzCore 0x0000000184094ac0 CA::Context::commit_transaction(CA::Transaction*) + 252
21 QuartzCore 0x0000000184094820 CA::Transaction::commit() + 500
22 QuartzCore 0x000000018408dde4 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 80
23 CoreFoundation 0x0000000181564728 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
24 CoreFoundation 0x00000001815624cc __CFRunLoopDoObservers + 372
25 CoreFoundation 0x00000001815628fc __CFRunLoopRun + 928
26 CoreFoundation 0x000000018148cc50 CFRunLoopRunSpecific + 384
27 GraphicsServices 0x0000000182d74088 GSEventRunModal + 180
28 UIKit 0x0000000186776088 UIApplicationMain + 204
29 MargRiver 0x00000001000fc378 main (AppDelegate.swift:27)
30 libdyld.dylib 0x000000018102a8b8 start + 4
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x00000001811494d8 kevent_qos + 8
1 libdispatch.dylib 0x000000018100c7d8 _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x0000000180ffb648 _dispatch_source_invoke + 0
Thread 2:
0 libsystem_kernel.dylib 0x0000000181148b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000181211530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000181211020 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x0000000181148b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000181211530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000181211020 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x0000000181148b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000181211530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000181211020 start_wqthread + 4
Thread 5 name: Dispatch queue: com.apple.root.background-qos
Thread 5 Crashed:
0 libswiftCore.dylib 0x00000001020791fc 0x101f38000 + 1315324
1 libswiftCore.dylib 0x00000001020791fc 0x101f38000 + 1315324
2 MargRiver 0x00000001000ea908 EntriesListController.(loadEntries(completion : () -> ()?) -> ()).(closure #1) (EntriesListController.swift:0)
3 MargRiver 0x00000001000ae798 thunk (MoreViewController.swift:0)
4 libdispatch.dylib 0x0000000180ff94bc _dispatch_call_block_and_release + 24
5 libdispatch.dylib 0x0000000180ff947c _dispatch_client_callout + 16
6 libdispatch.dylib 0x0000000181007914 _dispatch_root_queue_drain + 2140
7 libdispatch.dylib 0x00000001810070b0 _dispatch_worker_thread3 + 112
8 libsystem_pthread.dylib 0x0000000181211470 _pthread_wqthread + 1092
9 libsystem_pthread.dylib 0x0000000181211020 start_wqthread + 4
Thread 5 crashed with ARM Thread State (64-bit):
x0: 0x00000001028d1400 x1: 0x000000018120a8f4 x2: 0x000000013d512300 x3: 0x0000000000000008
x4: 0x0000000000000000 x5: 0x0000000000000010 x6: 0x0000000000000000 x7: 0x0000000000000fa0
x8: 0x00000001028d1408 x9: 0x0000000000001000 x10: 0x000000013d514000 x11: 0x0000000000000fff
x12: 0x000000013d510000 x13: 0x0000000000003fff x14: 0xffffffffffffc000 x15: 0x0000000000003fff
x16: 0x0000000181174168 x17: 0x000000010215c048 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000000000002 x21: 0x0000000000000039 x22: 0x0000000100727500 x23: 0x0000000000000002
x24: 0x000000000000000b x25: 0x000000010072753a x26: 0x000000016e2470e0 x27: 0x000000016e2470e0
x28: 0x0000000000000000 fp: 0x000000016e246720 lr: 0x00000001020791fc
sp: 0x000000016e2466e0 pc: 0x00000001020791fc cpsr: 0x20000000
Here is the beginning of the loadEntries() function:
fileprivate func loadEntries(completion: (() -> Void)?) -> Void {
let timeStartDb = Date()
var timeEndDb: Date!
var sqlStatement: String!
var newEntries = [Entry]()
var newSelectedSegment = false // true => the selected segment control button is different from last time loadEntries() was called
DispatchQueue.global(qos: .background).async {
if (self.listOrderSegControl.selectedSegmentIndex != self.previousSelectedSegmentIndex) {
newSelectedSegment = true
self.previousSelectedSegmentIndex = self.listOrderSegControl.selectedSegmentIndex
}
switch (self.listOrderSegControl.selectedSegmentIndex) {
case EntriesListController.LIST_ORDER_DISTANCE:
sqlStatement = self.sqlSubStatement + self.distanceSortOrder
case EntriesListController.LIST_ORDER_AZ:
sqlStatement = self.sqlSubStatement + "title"
case EntriesListController.LIST_ORDER_RECOMMENDED:
sqlStatement = self.sqlSubStatement + "prio"
default:
sqlStatement = self.sqlSubStatement + "prio"
self.previousSelectedSegmentIndex = EntriesListController.LIST_ORDER_RECOMMENDED
}
The code crashes in the switch statement because self.sqlSubStatement=nil. As I mentioned above, I've purposely added this bug in order to learn how to use crash reports. The crash report is however not identifying the line of code with the bug. Can it be made to identify it?

iOS App (Using Core Data) Crashes After Update, But Only App Store Version

I have a serious problem with an iOS 9.1 app: I have updated the app, successfully tested it on several iPhone devices, submitted it to the App Store and Apple reviewed and rolled out the app. The app uses Core Data.
The problem is, however, that the app crashes immediately after start up for users that installed it as an update. A crash report is listed below, however, I cannot find the real problem with it (also because not everything is symbolised). If I run it on the same device directly via Xcode, the app works fine and does not crash.
Any ideas of how I could find the error?
Thanks very much for any hint!
Incident Identifier: 82CFBBFB-D78F-45B8-B7B1-5CA927889673
CrashReporter Key: b74b72673e3b94fca688b2e61a466eb9826dc424
Hardware Model: iPhone7,1
Process: MyAppName [826]
Path: /private/var/mobile/Containers/Bundle/Application/13C779F5-8CEB-4815-AF64-18B08827CDEE/MyAppName.app/MyAppName
Identifier: com.myappdomain.MyAppName
Version: 20151128 (1.4)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-12-02 07:07:58.58 +0100
Launch Time: 2015-12-02 07:07:57.57 +0100
OS Version: iOS 9.1 (13B143)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x200000001576a714
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 MyAppName 0x0000000100071a64 0x100040000 + 203364
1 MyAppName 0x00000001000721a0 0x100040000 + 205216
2 MyAppName 0x0000000100071d2c 0x100040000 + 204076
3 MyAppName 0x0000000100073624 0x100040000 + 210468
4 MyAppName 0x00000001000718d8 0x100040000 + 202968
5 MyAppName 0x0000000100071978 0x100040000 + 203128
6 MyAppName 0x0000000100071a20 0x100040000 + 203296
7 MyAppName 0x0000000100072848 0x100040000 + 206920
8 MyAppName 0x0000000100072e08 0x100040000 + 208392
9 MyAppName 0x000000010006c6f8 0x100040000 + 182008
10 MyAppName 0x000000010006fe68 0x100040000 + 196200
11 MyAppName 0x000000010006afdc 0x100040000 + 176092
12 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
13 UIKit 0x00000001884b45c8 -[UINavigationController viewDidAppear:] + 220
14 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
15 UIKit 0x00000001885239b8 -[UITabBarController viewDidAppear:] + 128
16 UIKit 0x00000001883f4654 -[UIViewController _setViewAppearState:isAnimating:] + 724
17 UIKit 0x00000001884654f0 __64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke + 44
18 UIKit 0x000000018846548c -[UIViewController _executeAfterAppearanceBlock] + 92
19 UIKit 0x000000018868c674 _runAfterCACommitDeferredBlocks + 556
20 UIKit 0x00000001886994bc _cleanUpAfterCAFlushAndRunDeferredBlocks + 92
21 CoreFoundation 0x0000000182e0042c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
22 CoreFoundation 0x0000000182dffd64 __CFRunLoopDoBlocks + 308
23 CoreFoundation 0x0000000182dfdcc8 __CFRunLoopRun + 708
24 CoreFoundation 0x0000000182d2cca0 CFRunLoopRunSpecific + 384
25 GraphicsServices 0x000000018df68088 GSEventRunModal + 180
26 UIKit 0x0000000188444ffc UIApplicationMain + 204
27 MyAppName 0x00000001000581e4 0x100040000 + 98788
28 libdyld.dylib 0x000000019824a8b8 start + 4
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x00000001983684fc kevent_qos + 8
1 libdispatch.dylib 0x000000019822ca04 _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x000000019821b874 _dispatch_source_invoke + 0
Thread 2:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x0000000198367b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019842d530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x000000019842d020 start_wqthread + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000001576a7350 x1: 0x000000015769c200 x2: 0x0000000000000000 x3: 0x0000000100071a40
x4: 0x000000016fdbdf60 x5: 0x000000016fdbdf68 x6: 0x0000000000000000 x7: 0x0000000000000004
x8: 0x200000001576a69c x9: 0x0000000000000018 x10: 0x0000000000000000 x11: 0x0000000300000003
x12: 0x000000015755f2f0 x13: 0x0000000000003fff x14: 0xffffffffffffc000 x15: 0x0000000000003fff
x16: 0x000000010027da54 x17: 0x0000000182e438dc x18: 0x0000000000000000 x19: 0x000000015769c200
x20: 0x00000001576a7350 x21: 0x000000016fdbe260 x22: 0x000000015769c200 x23: 0x000000015769c200
x24: 0x000000015769ccd0 x25: 0x000000015808fc20 x26: 0x000000010006ff58 x27: 0x000000016fdbe198
x28: 0x0000000000000002 fp: 0x000000016fdbe060 lr: 0x00000001000721a0
sp: 0x000000016fdbe020 pc: 0x0000000100071a64 cpsr: 0x20000000
Just in case someone else experiences this issue:
The problem is actually a bug in Swift's implementation of array. The following code crashes in release mode:
myarr.sortInPlace($0.date < $1.date)
However, this code works just fine:
myarr = myarr.sort($0.date < $1.date)
More about this issue (which is hopefully solved soon by Apple) can be found here:
https://forums.developer.apple.com/thread/23455

Cannot set app to iPhone only

I have the following settings on my app. It should be iPhone only.
Like you can see I also get the iPad simulaters and my App is rejected becaused it crashed on iPad.
Does anybody know what is going wrong? Do I miss a setting ?
Thanks in advance !!
EDIT
Here is what the crash report says what apple send to me.
{"bundleID":"com.appmax.AFF","app_name":"AFF","bug_type":"109","name":"AFF","os_version":"iPhone OS 7.1.2 (11D257)","version":"1.2 (1.2)"}
Incident Identifier: 8C8A7A5E-85DC-4936-AB99-4A8AC19BCBCE
CrashReporter Key: c770a653986db73b9d1205c822ac50e382e38abc
Hardware Model: xxx
Process: AFF [5920]
Path: /var/mobile/Applications/E515D4D0-DC66-4726-A01E-BF2BB82969C4/AFF.app/AFF
Identifier: com.appmax.AFF
Version: 1.2 (1.2)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2014-07-21 13:02:48.953 -0700
OS Version: iOS 7.1.2 (11D257)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
(0x18bdeb100 0x1987c81fc 0x18bdefdb4 0x18bdedae0 0x18bd0d78c 0x1000e9484 0x1001b4b80 0x198da0014 0x198d9ffd4 0x198da31dc 0x18bdaaddc 0x18bda911c 0x18bce9dd0 0x191989c0c 0x18ee1afc4 0x1000ddb84 0x198dbbaa0)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000198eb658c __pthread_kill + 8
1 libsystem_c.dylib 0x0000000198e4a804 abort + 108
2 libc++abi.dylib 0x0000000198070990 abort_message + 84
3 libc++abi.dylib 0x000000019808dc28 default_terminate_handler() + 296
4 libobjc.A.dylib 0x00000001987c84d0 _objc_terminate() + 124
5 libc++abi.dylib 0x000000019808b164 std::__terminate(void (*)()) + 12
6 libc++abi.dylib 0x000000019808aa7c __cxa_throw + 132
7 libobjc.A.dylib 0x00000001987c8314 objc_exception_throw + 340
8 CoreFoundation 0x000000018bdefdb0 -[NSObject(NSObject) doesNotRecognizeSelector:] + 216
9 CoreFoundation 0x000000018bdedadc ___forwarding___ + 908
10 CoreFoundation 0x000000018bd0d788 _CF_forwarding_prep_0 + 88
11 AFF 0x00000001000e9480 0x1000d8000 + 70784
12 AFF 0x00000001001b4b7c 0x1000d8000 + 904060
13 libdispatch.dylib 0x0000000198da0010 _dispatch_call_block_and_release + 20
14 libdispatch.dylib 0x0000000198d9ffd0 _dispatch_client_callout + 12
15 libdispatch.dylib 0x0000000198da31d8 _dispatch_main_queue_callback_4CF + 332
16 CoreFoundation 0x000000018bdaadd8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
17 CoreFoundation 0x000000018bda9118 __CFRunLoopRun + 1448
18 CoreFoundation 0x000000018bce9dcc CFRunLoopRunSpecific + 448
19 GraphicsServices 0x0000000191989c08 GSEventRunModal + 164
20 UIKit 0x000000018ee1afc0 UIApplicationMain + 1152
21 AFF 0x00000001000ddb80 0x1000d8000 + 23424
22 libdyld.dylib 0x0000000198dbba9c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000198e9daa8 kevent64 + 8
1 libdispatch.dylib 0x0000000198da1998 _dispatch_mgr_thread + 48
Thread 2:
0 libsystem_kernel.dylib 0x0000000198eb6e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000198f35548 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000198eb6e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000198f35548 start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x0000000198eb6e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000198f35548 start_wqthread + 0
Thread 5 name: AFNetworking
Thread 5:
0 libsystem_kernel.dylib 0x0000000198e9dca0 mach_msg_trap + 8
1 CoreFoundation 0x000000018bdaad20 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x000000018bda8eb0 __CFRunLoopRun + 832
3 CoreFoundation 0x000000018bce9dcc CFRunLoopRunSpecific + 448
4 Foundation 0x000000018c8852c0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 292
5 Foundation 0x000000018c8e2d74 -[NSRunLoop(NSRunLoop) run] + 92
6 AFF 0x000000010016717c 0x1000d8000 + 586108
7 Foundation 0x000000018c96c408 __NSThread__main__ + 996
8 libsystem_pthread.dylib 0x0000000198f37e18 _pthread_body + 164
9 libsystem_pthread.dylib 0x0000000198f37d70 _pthread_start + 136
10 libsystem_pthread.dylib 0x0000000198f35550 thread_start + 0
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x0000000198e9dca0 mach_msg_trap + 8
1 CoreFoundation 0x000000018bdaad20 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x000000018bda8eb0 __CFRunLoopRun + 832
3 CoreFoundation 0x000000018bce9dcc CFRunLoopRunSpecific + 448
4 Foundation 0x000000018c8de424 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018c96c408 __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x0000000198f37e18 _pthread_body + 164
7 libsystem_pthread.dylib 0x0000000198f37d70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000198f35550 thread_start + 0
Thread 7:
0 libsystem_kernel.dylib 0x0000000198eb6e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000198f35548 start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x0000000198eb6e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000198f35548 start_wqthread + 0
Thread 9:
0 libsystem_kernel.dylib 0x0000000198eb6e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000198f35548 start_wqthread + 0
Thread 10 name: com.apple.CFSocket.private
Thread 10:
0 libsystem_kernel.dylib 0x0000000198eb676c __select + 8
1 libsystem_pthread.dylib 0x0000000198f37e18 _pthread_body + 164
2 libsystem_pthread.dylib 0x0000000198f37d70 _pthread_start + 136
3 libsystem_pthread.dylib 0x0000000198f35550 thread_start + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x000000016fd254e8
x4: 0x0000000000002060 x5: 0x000000016fd255a0 x6: 0x000000000000006e x7: 0x0000000000000640
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x000000009bd036f7 x11: 0x0000000000000300
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000198e63dcb
x16: 0x0000000000000148 x17: 0x00005e3808e74d3d x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000019bd162a0 x21: 0x0000000170135778 x22: 0x00000001701357a0 x23: 0x00000001700557e0
x24: 0x0000000000000000 x25: 0x000000018f4a91ea x26: 0x000000010021d7b0 x27: 0x000000016fd26cf8
x28: 0x0000000000003603 fp: 0x000000016fd25520 lr: 0x0000000198f3916c
sp: 0x000000016fd25500 pc: 0x0000000198eb658c cpsr: 0x00000000
Any iPhone App , will run on iPad even if you restrict to iPhone in your Project Settings,Your App will be shown with a Scaled view for iPad such as Zoomed in version. If your App got crashed on iPad, then you would have to handle it, try to figure out using the reasons given in Resolution Centre or by running your app on iPad Simulator.

iOS crash reports: how to find more informations

Bellow there is a crash report provided by Apple:
{"bundleID":"RomaniaMilitary.RomaniaMilitary","app_name":"RomaniaMilitary","bug_type":"109","name":"RomaniaMilitary","os_version":"iPhone OS 7.1.1 (11D201)","version":"1.0 (1.0)"}
Incident Identifier: 1A9B2804-2C07-4E6B-9377-D396F56704CC
CrashReporter Key: 99f9caadfd48c4739585b7383898f343220c933c
Hardware Model: xxx
Process: RomaniaMilitary [457]
Path: /var/mobile/Applications/A07BCAC9-34FA-459D-9231-C21476488D31/RomaniaMilitary.app/RomaniaMilitary
Identifier: RomaniaMilitary.RomaniaMilitary
Version: 1.0 (1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2014-05-15 10:20:18.368 -0700
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
(0x18ab26f50 0x1975041fc 0x18ab2bc04 0x18ab29930 0x18aa495dc 0x100074360 0x18dc38904 0x18dbd6e64 0x18dbd662c 0x18daeaff8 0x18d6dc258 0x18d6d6e20 0x18d6d6cd8 0x18d6d6560 0x18d6d6304 0x18d6cfc38 0x18aae76a8 0x18aae4930 0x18aae4cbc 0x18aa25c20 0x1906c5c0c 0x18db56fdc 0x100074e30 0x197af7aa0)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000197bf258c __pthread_kill + 8
1 libsystem_c.dylib 0x0000000197b86804 abort + 108
2 libc++abi.dylib 0x0000000196dac990 abort_message + 84
3 libc++abi.dylib 0x0000000196dc9c28 default_terminate_handler() + 296
4 libobjc.A.dylib 0x00000001975044d0 _objc_terminate() + 124
5 libc++abi.dylib 0x0000000196dc7164 std::__terminate(void (*)()) + 12
6 libc++abi.dylib 0x0000000196dc6a7c __cxa_throw + 132
7 libobjc.A.dylib 0x0000000197504314 objc_exception_throw + 340
8 CoreFoundation 0x000000018ab2bc00 -[NSObject(NSObject) doesNotRecognizeSelector:] + 216
9 CoreFoundation 0x000000018ab2992c ___forwarding___ + 908
10 CoreFoundation 0x000000018aa495d8 _CF_forwarding_prep_0 + 88
11 RomaniaMilitary 0x000000010007435c 0x100068000 + 50012
12 UIKit 0x000000018dc38900 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 404
13 UIKit 0x000000018dbd6e60 -[UITableView _updateVisibleCellsNow:] + 1928
14 UIKit 0x000000018dbd6628 -[UITableView layoutSubviews] + 164
15 UIKit 0x000000018daeaff4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 344
16 QuartzCore 0x000000018d6dc254 -[CALayer layoutSublayers] + 180
17 QuartzCore 0x000000018d6d6e1c CA::Layer::layout_if_needed(CA::Transaction*) + 296
18 QuartzCore 0x000000018d6d6cd4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
19 QuartzCore 0x000000018d6d655c CA::Context::commit_transaction(CA::Transaction*) + 276
20 QuartzCore 0x000000018d6d6300 CA::Transaction::commit() + 420
21 QuartzCore 0x000000018d6cfc34 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 76
22 CoreFoundation 0x000000018aae76a4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
23 CoreFoundation 0x000000018aae492c __CFRunLoopDoObservers + 368
24 CoreFoundation 0x000000018aae4cb8 __CFRunLoopRun + 760
25 CoreFoundation 0x000000018aa25c1c CFRunLoopRunSpecific + 448
26 GraphicsServices 0x00000001906c5c08 GSEventRunModal + 164
27 UIKit 0x000000018db56fd8 UIApplicationMain + 1152
28 RomaniaMilitary 0x0000000100074e2c 0x100068000 + 52780
29 libdyld.dylib 0x0000000197af7a9c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000197bd9aa8 kevent64 + 8
1 libdispatch.dylib 0x0000000197add998 _dispatch_mgr_thread + 48
Thread 2:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 4 name: AFNetworking
Thread 4:
0 libsystem_kernel.dylib 0x0000000197bd9ca0 mach_msg_trap + 8
1 CoreFoundation 0x000000018aae6b70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x000000018aae4d00 __CFRunLoopRun + 832
3 CoreFoundation 0x000000018aa25c1c CFRunLoopRunSpecific + 448
4 Foundation 0x000000018b5c12c0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 292
5 Foundation 0x000000018b61ed74 -[NSRunLoop(NSRunLoop) run] + 92
6 RomaniaMilitary 0x000000010008332c 0x100068000 + 111404
7 Foundation 0x000000018b6a8408 __NSThread__main__ + 996
8 libsystem_pthread.dylib 0x0000000197c73e18 _pthread_body + 164
9 libsystem_pthread.dylib 0x0000000197c73d70 _pthread_start + 136
10 libsystem_pthread.dylib 0x0000000197c71550 thread_start + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x0000000197bd9ca0 mach_msg_trap + 8
1 CoreFoundation 0x000000018aae6b70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x000000018aae4d00 __CFRunLoopRun + 832
3 CoreFoundation 0x000000018aa25c1c CFRunLoopRunSpecific + 448
4 Foundation 0x000000018b61a424 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018b6a8408 __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x0000000197c73e18 _pthread_body + 164
7 libsystem_pthread.dylib 0x0000000197c73d70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197c71550 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x0000000197bf2e74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197c71548 start_wqthread + 0
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x0000000197bf276c __select + 8
1 libsystem_pthread.dylib 0x0000000197c73e18 _pthread_body + 164
2 libsystem_pthread.dylib 0x0000000197c73d70 _pthread_start + 136
3 libsystem_pthread.dylib 0x0000000197c71550 thread_start + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x000000016fd93ee8
x4: 0x0000000000002060 x5: 0x000000016fd93fa0 x6: 0x000000000000006e x7: 0x0000000000000a20
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x000000009aa3f6f7 x11: 0x0000000000000300
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0x0000000197b9fdcb
x16: 0x0000000000000148 x17: 0x005bf73d22a9626a x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000019aa522a0 x21: 0x0000000170126318 x22: 0x0000000170126340 x23: 0x00000001987304f0
x24: 0x0000000000000000 x25: 0x000000018e1e51ea x26: 0x000000014fd354f0 x27: 0x00000001702a12c0
x28: 0x00000001700388a0 fp: 0x000000016fd93f20 lr: 0x0000000197c7516c
sp: 0x000000016fd93f00 pc: 0x0000000197bf258c cpsr: 0x00000000
Update :
Apple message:
We found your app crashed on launch so we were unable to review it. Please revise your app and test it on a device to ensure it will launch without crashing, and that it runs as expected, before resubmitting.
I posted full report (without binary image)
You submitted an application without symbols, so Apple couldn't tell you where in your application the fault is. The last bit of your code that is called gets called from
[UITableView _createPreparedCellForGlobalRow:withIndexPath:]
so it will happen in some delegate method of yours where you are preparing a cell, and you are sending a message to some object that doesn't understand it. There's probably more information in their report which you should post. Knowing which method was sent to which kind of object would be very helpful.
Meanwhile, turn on all warnings in your compiler that you can reasonably turn on and fix the problems, then run the static analyser and fix all problems that it finds, then let someone else test your application on a real device, in case you subconsciously avoid problem areas.
Here's what you need to do:
1) You need your archived application, the one you submitted. If not, then disregard the rest of the steps; it's game over.
2) The archive file is a bundle. You must show its contents.
3) Inside you will find a folder marked 'dSYMs.' Inside it you will find a file named <your app name>.app.dSYM. Select it and copy (using Copy/Command-C).
4) Go back one level. Inside the Products/Applications folder you will find your application. It's a bundle as well. You must show its contents.
5) Inside you will find your application's executable file. Now paste the dSYM file you had previously copied here.
6) Fire up your Terminal. cd to the Products/Applications folder in which you just pasted the dSYM file.
7) Now go back to that 'cryptic' report that Apple sent you. I see that you've included more information from the report, but there ought to be a section that shows all the processes that were running on your device at the time, and at the top should be your application. There are two large hexadecimal numbers there. Make a note of the first one. Then go to line 11 in your stack trace. Make a note of that long hexadecimal (0x000000010007435c). You'll need both of these numbers for the next step.
8) On your Terminal's command line enter
atos -o <your application name, including the extension> -l <first hex number> <second hex number>
9) atos should show you something like this:
-[classname method] (in <your app name>) (<file name where your object is located>:<line number>)
Now you'll have the clue you need to go after your problem.
Good luck to you in your endeavors.

Resources