I recently released an application on the App Store. There are 2 people in my app that are experiencing a crash. The other ~100 users don't have a problem. They both logged the error so I can see the problem, but I don't really understand it. The log:
Incident Identifier: 83C6C7C3-217A-4D9E-8D38-F1C786388050CrashReporter Key: 1af4cb0c6c69debe627bf186da257f9add2676b5Hardware Model: iPhone10,6Process: My_App [35348]Path: /private/var/containers/Bundle/Application/6053C28A-97D9-45DF-B4B8-9930D94B5BF3/My_App.app/My_AppIdentifier: <myIdentifier>Version: 1.0 (3.3.4)AppStoreTools: 11E146AppVariant: 1:iPhone10,6:13Code Type: ARM-64 (Native)Role: ForegroundParent Process: launchd [1]Coalition: <myIdentifier> [4240]Date/Time: 2020-04-03 22:39:31.0240 +0200Launch Time: 2020-04-03 22:39:29.9110 +0200OS Version: iPhone OS 13.3.1 (17D50)Release Type: UserBaseband Version: 3.03.03Report Version: 104Exception Type: EXC_BREAKPOINT (SIGTRAP)Exception Codes: 0x0000000000000001, 0x000000010496833cTermination Signal: Trace/BPT trap: 5Termination Reason: Namespace SIGNAL, Code 0x5Terminating Process: exc handler [35348]Triggered by Thread: 0Thread 0 name:Thread 0 Crashed:0 My_App 0x000000010496833c closure #1 in closure #1 in IAPService.sendJsonRequest(receiptString:) + 2132 (IAPService.swift:342)1 My_App 0x00000001049c4f08 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)2 libdispatch.dylib 0x00000001989a6610 _dispatch_call_block_and_release + 24 (init.c:1408)3 libdispatch.dylib 0x00000001989a7184 _dispatch_client_callout + 16 (object.m:495)4 libdispatch.dylib 0x000000019898a34c _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 996 (inline_internal.h:2484)5 CoreFoundation 0x0000000198c585e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1749)6 CoreFoundation 0x0000000198c535d8 __CFRunLoopRun + 2004 (CFRunLoop.c:3069)7 CoreFoundation 0x0000000198c52adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)8 GraphicsServices 0x00000001a2bf3328 GSEventRunModal + 104 (GSEvent.c:2246)9 UIKitCore 0x000000019cd6063c UIApplicationMain + 1936 (UIApplication.m:4773)10 My_App 0x0000000104873ea8 main + 68 (InspiringDreamViewCell.swift:19)11 libdyld.dylib 0x0000000198adc360 start + 4Thread 1:0 libsystem_pthread.dylib 0x00000001989f9758 start_wqthread + 0Thread 2:0 libsystem_pthread.dylib 0x00000001989f9758 start_wqthread + 0Thread 3:0 libsystem_pthread.dylib 0x00000001989f9758 start_wqthread + 0Thread 4 name:Thread 4:0 libsystem_kernel.dylib 0x0000000198ab0634 mach_msg_trap + 81 libsystem_kernel.dylib 0x0000000198aafaa0 mach_msg + 72 (mach_msg.c:103)2 CoreFoundation 0x0000000198c58288 __CFRunLoopServiceMachPort + 216 (CFRunLoop.c:2575)3 CoreFoundation 0x0000000198c533a8 __CFRunLoopRun + 1444 (CFRunLoop.c:2931)4 CoreFoundation 0x0000000198c52adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)5 Foundation 0x0000000198f92784 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228 (NSRunLoop.m:374)6 Foundation 0x0000000198f92664 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88 (NSRunLoop.m:421)7 UIKitCore 0x000000019cdf8e80 -[UIEventFetcher threadMain] + 152 (UIEventFetcher.m:637)8 Foundation 0x00000001990c309c __NSThread__start__ + 848 (NSThread.m:724)9 libsystem_pthread.dylib 0x00000001989f5d8c _pthread_start + 156 (pthread.c:896)10 libsystem_pthread.dylib 0x00000001989f976c thread_start + 8Thread 5:0 libsystem_pthread.dylib 0x00000001989f9758 start_wqthread + 0Thread 6:0 libsystem_pthread.dylib 0x00000001989f9758 start_wqthread + 0Thread 7:0 libsystem_kernel.dylib 0x0000000198ab0688 semaphore_timedwait_trap + 81 libdispatch.dylib 0x0000000198978f04 _dispatch_sema4_timedwait$VARIANT$armv81 + 64 (lock.c:154)2 libdispatch.dylib 0x000000019897948c _dispatch_semaphore_wait_slow + 72 (semaphore.c:116)3 libdispatch.dylib 0x000000019898cf44 _dispatch_worker_thread + 344 (queue.c:6728)4 libsystem_pthread.dylib 0x00000001989f5d8c _pthread_start + 156 (pthread.c:896)5 libsystem_pthread.dylib 0x00000001989f976c thread_start + 8Thread 8:0 libsystem_kernel.dylib 0x0000000198ab0688 semaphore_timedwait_trap + 81 libdispatch.dylib 0x0000000198978f04 _dispatch_sema4_timedwait$VARIANT$armv81 + 64 (lock.c:154)2 libdispatch.dylib 0x000000019897948c _dispatch_semaphore_wait_slow + 72 (semaphore.c:116)3 libdispatch.dylib 0x000000019898cf44 _dispatch_worker_thread + 344 (queue.c:6728)4 libsystem_pthread.dylib 0x00000001989f5d8c _pthread_start + 156 (pthread.c:896)5 libsystem_pthread.dylib 0x00000001989f976c thread_start + 8Thread 9:0 libsystem_kernel.dylib 0x0000000198ab0688 semaphore_timedwait_trap + 81 libdispatch.dylib 0x0000000198978f04 _dispatch_sema4_timedwait$VARIANT$armv81 + 64 (lock.c:154)2 libdispatch.dylib 0x000000019897948c _dispatch_semaphore_wait_slow + 72 (semaphore.c:116)3 libdispatch.dylib 0x000000019898cf44 _dispatch_worker_thread + 344 (queue.c:6728)4 libsystem_pthread.dylib 0x00000001989f5d8c _pthread_start + 156 (pthread.c:896)5 libsystem_pthread.dylib 0x00000001989f976c thread_start + 8Thread 10 name:Thread 10:0 libsystem_kernel.dylib 0x0000000198ab0634 mach_msg_trap + 81 libsystem_kernel.dylib 0x0000000198aafaa0 mach_msg + 72 (mach_msg.c:103)2 CoreFoundation 0x0000000198c58288 __CFRunLoopServiceMachPort + 216 (CFRunLoop.c:2575)3 CoreFoundation 0x0000000198c533a8 __CFRunLoopRun + 1444 (CFRunLoop.c:2931)4 CoreFoundation 0x0000000198c52adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)5 AVFAudio 0x00000001a5835c1c GenericRunLoopThread::Entry(void*) + 156 (GenericRunLoopThread.h:91)6 AVFAudio 0x00000001a5886d60 CAPThread::Entry(CAPThread*) + 204 (CAPThread.cpp:286)7 libsystem_pthread.dylib 0x00000001989f5d8c _pthread_start + 156 (pthread.c:896)8 libsystem_pthread.dylib 0x00000001989f976c thread_start + 8Thread 11 name:Thread 11:0 libsystem_kernel.dylib 0x0000000198ab0634 mach_msg_trap + 81 libsystem_kernel.dylib 0x0000000198aafaa0 mach_msg + 72 (mach_msg.c:103)2 CoreFoundation 0x0000000198c58288 __CFRunLoopServiceMachPort + 216 (CFRunLoop.c:2575)3 CoreFoundation 0x0000000198c533a8 __CFRunLoopRun + 1444 (CFRunLoop.c:2931)4 CoreFoundation 0x0000000198c52adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)5 CFNetwork 0x000000019bf1c4e8 -[__CoreSchedulingSetRunnable runForever] + 192 (CoreSchedulingSet.mm:1372)6 Foundation 0x00000001990c309c __NSThread__start__ + 848 (NSThread.m:724)7 libsystem_pthread.dylib 0x00000001989f5d8c _pthread_start + 156 (pthread.c:896)8 libsystem_pthread.dylib 0x00000001989f976c thread_start + 8Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000001 x1: 0x0000000000000001 x2: 0x00000001de7748f0 x3: 0x00000001de7748f0 x4: 0x000000010a1f0bf0 x5: 0x0000000000000021 x6: 0x0000000000000000 x7: 0x0000000000000000 x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x00000000000007fd x12: 0x0000000000000001 x13: 0x00000000faa6783f x14: 0x00000000fac68000 x15: 0x00000000000000d0 x16: 0x0000000080000000 x17: 0x000000007ac00000 x18: 0x0000000000000000 x19: 0x00000001de7748f0 x20: 0x0000000000000000 x21: 0x00000001d843ded0 x22: 0x000000016b5928c0 x23: 0x000000016b5928b0 x24: 0x4000000283715950 x25: 0x000000010a1f0e00 x26: 0x4000000283715890 x27: 0x4000000282c72fc0 x28: 0xc00000000000001b fp: 0x000000016b592ac0 lr: 0x00000001049681e4 sp: 0x000000016b5928b0 pc: 0x000000010496833c cpsr: 0x60000000 esr: 0xf2000001 Address size faultBinary Images:0x10486c000 - 0x104a23fff My_App arm64 <e94e5aa29766388e8a7e9e30b517b21b> /var/containers/Bundle/Application/6053C28A-97D9-45DF-B4B8-9930D94B5BF3/My_App.app/My_App0x104ad0000 - 0x104b27fff AZSClient arm64 <ffbc04312fc4360ca9536a7272a251ed> /var/containers/Bundle/Application/6053C28A……
The function where the exeption is thrown:
func sendLocalJsonRequest(receiptString: String) { var restEndpoint: String = "https://buy.itunes.apple.com/verifyReceipt" #if DEBUG do { restEndpoint = "https://sandbox.itunes.apple.com/verifyReceipt" } #endif guard let url = URL(string: restEndpoint) else { print("Error creating URL") return } var urlRequest = URLRequest(url: url) urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") urlRequest.httpMethod = "POST" let jsonDictionary = NSMutableDictionary() jsonDictionary.setValue(receiptString, forKey: "receipt-data") jsonDictionary.setValue(<myPassword>, forKey: "password") jsonDictionary.setValue("true", forKey: "exclude-old-transactions") let jsonData: Data do{ jsonData = try JSONSerialization.data(withJSONObject: jsonDictionary, options: JSONSerialization.WritingOptions()) urlRequest.httpBody = jsonData } catch { print("Error creating Json") return } let config = URLSessionConfiguration.default let session = URLSession(configuration: config) let task = session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in do { print("Receipt Error:") print(error ?? "nil error") print("Receipt Response:") print(response ?? "nil response") let receipt = try JSONDecoder().decode(responseBody.self, from: data!) DispatchQueue.main.async { //Doing Stuff } } catch let error { print("receiptRequestError: ", error) //Doing Stuff } }) task.resume() }
Can someone explain to me what this means? And maybe what I need to do to solve it? I'm quite new to this. Thanks.