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.
Related
Im experiencing an error in my app affecting almost 80% of my active users.
It seems it has something to do with the thread
`com.twitter.crashlytics.ios.MachExceptionServer`
but I haven't been able to track it down, the worst thing of all is that I don't even know when this crash occurs, my guess is that it happens when the app is launching in the DidFinishLaunchingWithOptions method. :/
Hope you can help me out, I am new to this crash tracking thing.
Here is the crash log.
Incident Identifier: F627A1C2-A28A-4200-8920-1F77D3C0855C
CrashReporter Key: 88dbf413f263228712a90868f4c08e9d59a715f8
Hardware Model: iPhone10,4
Process: <APP_NAME> [1285]
Path: /private/var/containers/Bundle/Application/XXXXXXXXXXXXXXXXX/<APP_NAME>.app/<APP_NAME>
Identifier: xxx.xxxxxxxx.<APP_NAME>
Version: 34 (4.0.0)
AppStoreTools: 10B63
AppVariant: 1:iPhone10,4:12
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: xxx.xxxxxx.xxxxxx [677]
Date/Time: 2018-12-16 16:41:34.1689 -0600
Launch Time: 2018-12-16 15:52:00.9225 -0600
OS Version: iPhone OS 12.1 (16B92)
Baseband Version: 2.01.07
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000f262e3bc0
VM Region Info: 0xf262e3bc0 is not in any region. Bytes after previous region: 53790784449
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1285]
Triggered by Thread: 10
Thread 0 name:
Thread 0:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 GraphicsServices 0x00000002062b1584 GSEventRunModal + 100 (GSEvent.c:2245)
6 UIKitCore 0x000000023127d054 UIApplicationMain + 212 (UIApplication.m:4347)
7 <APP_NAME> 0x0000000104ae4548 main + 17736 (AppDelegate.swift:22)
8 libdyld.dylib 0x0000000203afabb4 start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 Foundation 0x0000000204a2f404 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)
6 Foundation 0x0000000204a2f2b0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 148 (NSRunLoop.m:411)
7 UIKitCore 0x000000023136a808 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:603)
8 Foundation 0x0000000204b621ac __NSThread__start__ + 1040 (NSThread.m:1175)
9 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128 (pthread.c:857)
10 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48 (pthread.c:884)
11 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 2 name: com.twitter.crashlytics.ios.MachExceptionServer
Thread 2:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72
2 <APP_NAME> 0x0000000104f0c490 CLSMachExceptionServer + 952
3 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128
4 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48
5 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 CFNetwork 0x000000020465b834 -[__CoreSchedulingSetRunnable runForever] + 212 (CoreSchedulingSet.mm:1365)
6 Foundation 0x0000000204b621ac __NSThread__start__ + 1040 (NSThread.m:1175)
7 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128 (pthread.c:857)
8 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48 (pthread.c:884)
9 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 4:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 8 name:
Thread 8:
0 libsystem_malloc.dylib 0x0000000203c80c74 nanov2_allocate_from_block$VARIANT$armv81 + 220
1 libsystem_malloc.dylib 0x0000000203c80040 nanov2_allocate$VARIANT$armv81 + 140
2 libsystem_malloc.dylib 0x0000000203c80040 nanov2_allocate$VARIANT$armv81 + 140
3 libsystem_malloc.dylib 0x0000000203c80540 nanov2_calloc$VARIANT$armv81 + 136
4 libsystem_malloc.dylib 0x0000000203c8db74 malloc_zone_calloc + 140 (malloc.c:1475)
5 libsystem_malloc.dylib 0x0000000203c8e3fc calloc + 40 (malloc.c:1731)
6 libobjc.A.dylib 0x0000000203290554 class_createInstance + 72 (objc-runtime-new.mm:0)
7 libdispatch.dylib 0x0000000203ae9ad8 _os_object_alloc_realized + 40 (object.m:55)
8 libdispatch.dylib 0x0000000203ae3af4 dispatch_data_create_concat$VARIANT$armv81 + 164 (data.c:118)
9 CFNetwork 0x00000002048b8ffc invocation function for block in ConnectionProtocolReadInner(nw_protocol*, unsigned int, unsigned int, bool, long long, void (dispatch_data_s*, CFStreamError) block_pointer, void (nw_frame_array_s*, CFStreamError) block_pointer) + 152 (ConnectionProtocol.cpp:771)
10 libnetwork.dylib 0x00000002050d3474 nw_frame_array_foreach + 48 (frame_internal.h:999)
11 CFNetwork 0x00000002048b64ac ConnectionProtocolReadInner(nw_protocol*, unsigned int, unsigned int, bool, long long, void (dispatch_data_s*, CFStreamError) block_pointer, void (nw_frame_array_s*, CFStreamError) block_pointer) + 408 (ConnectionProtocol.cpp:755)
12 CFNetwork 0x00000002048b6264 ConnectionProtocolServiceReads(nw_protocol*) + 380 (ConnectionProtocol.cpp:658)
13 CFNetwork 0x00000002048b7270 ConnectionProtocolInputAvailable(nw_protocol*, nw_protocol*) + 64 (ConnectionProtocol.cpp:964)
14 libboringssl.dylib 0x0000000204f34ac8 nw_boringssl_read + 532 (protocol_boringssl.m:1177)
15 libboringssl.dylib 0x0000000204f362a4 nw_protocol_boringssl_input_available + 120 (protocol_boringssl.m:1218)
16 libusrtcp.dylib 0x00000002053d8e9c nw_protocol_tcp_wake_read + 484 (protocol_tcp.c:269)
17 libusrtcp.dylib 0x00000002053c9774 nw_protocol_tcp_input_flush + 100 (user_north.c:40)
18 libnetwork.dylib 0x0000000205167474 nw_channel_add_input_frames + 4184 (channel.c:1096)
19 libnetwork.dylib 0x00000002051663b8 nw_channel_update_input_source + 136 (channel.c:1138)
20 libnetwork.dylib 0x0000000205165c08 __nw_channel_create_block_invoke.21 + 52 (channel.c:1960)
21 libdispatch.dylib 0x0000000203aea484 _dispatch_client_callout + 16 (object.m:511)
22 libdispatch.dylib 0x0000000203ac0e14 _dispatch_continuation_pop$VARIANT$armv81 + 404 (inline_internal.h:2441)
23 libdispatch.dylib 0x0000000203ad0ab4 _dispatch_source_invoke$VARIANT$armv81 + 1704 (source.c:568)
24 libdispatch.dylib 0x0000000203ac6d70 _dispatch_workloop_invoke$VARIANT$armv81 + 1892 (inline_internal.h:2482)
25 libdispatch.dylib 0x0000000203acdf14 _dispatch_workloop_worker_thread + 584 (queue.c:5889)
26 libsystem_pthread.dylib 0x0000000203ccc0dc _pthread_wqthread + 312 (pthread.c:2363)
27 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
Thread 9:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 10 name:
Thread 10 Crashed:
0 libobjc.A.dylib 0x0000000203298d70 objc_msgSend + 16
1 CoreData 0x0000000206c17754 -[_PFArray dealloc] + 100 (_PFArray.m:379)
2 libobjc.A.dylib 0x000000020329b38c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 676 (NSObject.mm:1605)
3 libdispatch.dylib 0x0000000203aea464 _dispatch_last_resort_autorelease_pool_pop + 40 (object.m:488)
4 libdispatch.dylib 0x0000000203accddc _dispatch_root_queue_drain + 1080 (queue.c:6049)
5 libdispatch.dylib 0x0000000203acd35c _dispatch_worker_thread2 + 116 (queue.c:6072)
6 libsystem_pthread.dylib 0x0000000203ccc17c _pthread_wqthread + 472 (pthread.c:2353)
7 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
Thread 11:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 10 crashed with ARM Thread State (64-bit):
x0: 0x0000000280283bb0 x1: 0x00000002317c19b4 x2: 0x0000000000000001 x3: 0x0000000203c8019c
x4: 0x000000014a514400 x5: 0x0000000000000012 x6: 0x000000023b9c4000 x7: 0x000000016b77e538
x8: 0x0000000281685080 x9: 0x0000000000000000 x10: 0x0000000148860a00 x11: 0x0000002f0000003f
x12: 0x0000000148860d40 x13: 0x0000a69f262e3bb0 x14: 0x000000000000004c x15: 0x0000000080000000
x16: 0x0000000f262e3bb0 x17: 0x0000000206c0f138 x18: 0x0000000000000000 x19: 0x0000000282fc8b70
x20: 0x00000002317c19b4 x21: 0x000000000000000c x22: 0x0000000000000020 x23: 0x0000000000000015
x24: 0x0000000000000010 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x000000016b77f0e0 fp: 0x000000016b77ea80 lr: 0x0000000206c17754
sp: 0x000000016b77ea40 pc: 0x0000000203298d70 cpsr: 0x20000000
AppDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
GeoBasedManager.instance.setCountry()
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
NotificationManager.shared.retrievePushNotifications()
FirebaseApp.configure()
SwiftDate.defaultRegion = Region.local
DropDown.startListeningToKeyboard()
return true
The thread com.twitter.crashlytics.ios.MachExceptionServer is a part of the Crashlytics reporting machinery. It is present in every report that Crashlytics generates, and is not related to your issue.
From your report, that Triggered by Thread: 10 indicates which thread is at fault. From that, we can see that you've got what looks like a classic over-release.
Thread 10 name:
Thread 10 Crashed:
0 libobjc.A.dylib 0x0000000203298d70 objc_msgSend + 16
1 CoreData 0x0000000206c17754 -[_PFArray dealloc] + 100 (_PFArray.m:379)
2 libobjc.A.dylib 0x000000020329b38c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 676 (NSObject.mm:1605)
3 libdispatch.dylib 0x0000000203aea464 _dispatch_last_resort_autorelease_pool_pop + 40 (object.m:488)
4 libdispatch.dylib 0x0000000203accddc _dispatch_root_queue_drain + 1080 (queue.c:6049)
5 libdispatch.dylib 0x0000000203acd35c _dispatch_worker_thread2 + 116 (queue.c:6072)
6 libsystem_pthread.dylib 0x0000000203ccc17c _pthread_wqthread + 472 (pthread.c:2353)
7 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
From frame 2 and 3, you can see that the system is cleaning up auto-released objects, from what looks like an internal dispatch queue. In there is an object that has already been deallocated, but is now being released again.
This kinds of bugs can manifest themselves in a variety of different-looking crashes. They can be hard to debug. As you are seeing, it is very hard to determine where the actual over-release occurred. Fortunately, Apple provides a few tools that can help. Check out the Zombies feature of Instruments. Good luck!
I have a new app which has been rejected twice with the same crash logs. They say it crashes when they tap the Buy button for in app purchase and gave me the crash file. I have symbolicated it and it hasn't been much helpful to me, can someone else take a look and point out if something's wrong?
The IAP has been tested successfully in sandbox with 2 sandbox users. I have also made sure my IAP has been actually "Cleared for sale" from my side and also "Submitted for review". My bank account info is up to date too and contracts are approved.
Here's the symbolicated logs:
{"app_name":"APPNAME","timestamp":"2017-12-18 08:48:19.56 -0800","app_version":"1.0","slice_uuid":"915a18a0-7c26-3ffd-af45-102cc6d53e21","adam_id":1326580740,"build_version":"2","bundleID":"com.MYCOMPANY.APPNAME","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.2.1 (15C153)","incident_id":"43C16882-BFF8-4C5E-80D7-01AEEE78F017","name":"APPNAME"}
Incident Identifier: 43C16882-BFF8-4C5E-80D7-01AEEE78F017
CrashReporter Key: 6079b68e9b231d52a24bc0ce1c55aa975b16774c
Hardware Model: xxx
Process: APPNAME [1217]
Path: /private/var/containers/Bundle/Application/81E108AB-4E43-4034-9A37-6C83929E75D4/APPNAME.app/APPNAME
Identifier: com.MYCOMPANY.APPNAME
Version: 2 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MYCOMPANY.APPNAME [832]
Date/Time: 2017-12-18 08:48:19.4110 -0800
Launch Time: 2017-12-18 08:43:02.9432 -0800
OS Version: iPhone OS 11.2.1 (15C153)
Baseband Version: 6.30.04
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x18411e364 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x183364528 objc_exception_throw + 55
2 CoreFoundation 0x18411e2ac +[NSException raise:format:] + 115
3 StoreKit 0x19758aa98 -[SKPaymentQueue addPayment:] + 539
4 APPNAME 0x1007a362c 0x100798000 + 46636
5 UIKit 0x18d6346b4 -[UIApplication sendAction:to:from:forEvent:] + 95
6 UIKit 0x18d634634 -[UIControl sendAction:to:forEvent:] + 79
7 UIKit 0x18d61f1dc -[UIControl _sendActionsForEvents:withEvent:] + 439
8 UIKit 0x18d633f28 -[UIControl touchesEnded:withEvent:] + 575
9 UIKit 0x18d633a48 -[UIWindow _sendTouchesForEvent:] + 2543
10 UIKit 0x18d62ef60 -[UIWindow sendEvent:] + 3207
11 UIKit 0x18d5fff64 -[UIApplication sendEvent:] + 339
12 UIKit 0x18df5531c __dispatchPreprocessedEventFromEventQueue + 2363
13 UIKit 0x18df578a8 __handleEventQueueInternal + 4759
14 UIKit 0x18df507c0 __handleHIDEventFetcherDrain + 151
15 CoreFoundation 0x1840c697c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 23
16 CoreFoundation 0x1840c68fc __CFRunLoopDoSource0 + 87
17 CoreFoundation 0x1840c6184 __CFRunLoopDoSources0 + 203
18 CoreFoundation 0x1840c3d5c __CFRunLoopRun + 1047
19 CoreFoundation 0x183fe3e58 CFRunLoopRunSpecific + 435
20 GraphicsServices 0x185e90f84 GSEventRunModal + 99
21 UIKit 0x18d66367c UIApplicationMain + 235
22 APPNAME 0x1007aab60 0x100798000 + 76640
23 libdyld.dylib 0x183b0056c start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000183c302e8 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000183d452f8 pthread_kill$VARIANT$mp + 396
2 libsystem_c.dylib 0x0000000183b9efbc abort + 140
3 libc++abi.dylib 0x000000018333b068 __cxa_bad_cast + 0
4 libc++abi.dylib 0x000000018333b210 default_unexpected_handler+ 8720 () + 0
5 libobjc.A.dylib 0x0000000183364810 _objc_terminate+ 34832 () + 124
6 libc++abi.dylib 0x000000018335354c std::__terminate(void (*)+ 107852 ()) + 16
7 libc++abi.dylib 0x0000000183353158 __cxa_rethrow + 144
8 libobjc.A.dylib 0x00000001833646e8 objc_exception_rethrow + 44
9 CoreFoundation 0x0000000183fe3ec4 CFRunLoopRunSpecific + 544
10 GraphicsServices 0x0000000185e90f84 GSEventRunModal + 100
11 UIKit 0x000000018d66367c UIApplicationMain + 236
12 APPNAME 0x00000001007aab60 0x100798000 + 76640
13 libdyld.dylib 0x0000000183b0056c start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x0000000183c0f568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000183c0f3e0 mach_msg + 72
2 CoreFoundation 0x00000001840c6308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001840c3ed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000183fe3e58 CFRunLoopRunSpecific + 436
5 Foundation 0x0000000184a19594 -[NSRunLoop+ 50580 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x0000000184a389ac -[NSRunLoop+ 178604 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018e1cd7b8 -[UIEventFetcher threadMain] + 136
8 Foundation 0x0000000184b1b0f4 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x0000000183d442b4 _pthread_body + 308
10 libsystem_pthread.dylib 0x0000000183d44180 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000183d42b74 thread_start + 4
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x0000000183c0f568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000183c0f3e0 mach_msg + 72
2 CoreFoundation 0x00000001840c6308 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001840c3ed4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000183fe3e58 CFRunLoopRunSpecific + 436
5 CFNetwork 0x00000001848d3128 -[__CoreSchedulingSetRunnable runForever] + 780
6 Foundation 0x0000000184b1b0f4 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x0000000183d442b4 _pthread_body + 308
8 libsystem_pthread.dylib 0x0000000183d44180 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000183d42b74 thread_start + 4
Thread 3:
0 libsystem_pthread.dylib 0x0000000183d42b68 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x0000000183d42b68 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000183d42b68 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001c40f9937
x4: 0x0000000183358afd x5: 0x000000016f6674d0 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000183d495e0 x11: 0x0000000000000003
x12: 0xffffffffffffffff x13: 0x0000000000000001 x14: 0x0000000183bb553f x15: 0x0000000000000010
x16: 0x0000000000000148 x17: 0x00000000ffffffff x18: 0xfffffff00e09925c x19: 0x0000000000000006
x20: 0x00000001b4e6fb80 x21: 0x000000016f6674d0 x22: 0x0000000000000303 x23: 0x00000001b4e6fc60
x24: 0x00000001c0005270 x25: 0x0000000000000000 x26: 0x0000000000000001 x27: 0x0000000000000000
x28: 0x000000016f667b30 fp: 0x000000016f667430 lr: 0x0000000183d452f8
sp: 0x000000016f667400 pc: 0x0000000183c302e8 cpsr: 0x00000000
I resolved this.
In Xcode > Target > Capabilities > Make sure to switch on In app purchases here. If you don't, then while testing with Sandbox, the in app purchase will work just fine. However when app review will test OR when app is live, tapping the Buy button will cause the app to crash because for some reason, the product won't load. The crash log won't be much useful as it will just show StoreKit crash but won't mention anything about capability. Enabling the IAP in capabilities is needed for the IAP to work in live apps. I have no idea why this inconsistency exists between Sandbox testing and App review/Live app.
Also in the code, only do addPayment if the Product is not nil. Since my capability wasn't set on, the product wasn't loading. So when I was calling addPayment, it crashed with:
[SKPaymentQueue addPayment:]
Also in iTunes connect, in banking info, make sure the "Account holder type" field is set. Not sure if this is a new field but mind wasn't set and I have been successfully submitting IAP for 5 years. Only this time, it said the holder type wasn't set.
Now the app review team hasn't reported IAP crash.
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.
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
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.