当应用程序终止时 PushKit 接收推送时,IOS 11 应用程序崩溃
<p><p>当 ios 11 更新发布时,我们的应用程序开始表现得很奇怪。我们正在使用 pushkit 来接收与来电和消息相关的推送通知。
当应用程序不在后台(处于终止状态)时,当推送通知到达时,IOS 会启动我们的应用程序并执行 didFinishLaunching 方法,而不是通知到达 didReceiveIncomingPushWithPayload 方法
然而,在更新到 IOS 11 后,我们发现当应用程序终止时,有时我们无法收到通知,当我们检查崩溃日志时,我们看到应用程序正在崩溃,因为 IOS 说 cpu 使用率但它成功执行了 didFinishLaunching 方法(我们把日志到方法结束并打印)</p>
<p>我们不知道是什么导致了这个问题,有没有人知道 IOS 11 中的更改会触发这个问题</p>
<p>您可以在下面找到我们的崩溃日志</p>
<pre><code>Incident Identifier: 6ED4EB5C-7E9E-4639-860B-312A48C74F49
CrashReporter Key: cbdfc5f8b24a9e7b992bec953fb095b1909482bc
Hardware Model: iPhone9,1
Process: DTimmmr
Path: /private/var/containers/Bundle/Application/B3B6FE24-DBCE-4966-9C6D-18778F73E668/DTimmmr.app/DTimmmr
Identifier: com.genband.immmrMagenta
Version: 7.3.3.791 (0.94)
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd
Coalition: com.genband.immmrMagenta
Date/Time: 2017-11-06 21:58:45.0631 +0300
Launch Time: 2017-11-06 21:58:39.6223 +0300
OS Version: iPhone OS 11.1 (15B93)
Baseband Version: 3.21.01
Report Version: 104
Exception Type:EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.genband.immmrMagenta exhausted CPU time allowance of 3.96 seconds || Elapsed total CPU time (seconds): 7.920 (user 7.920, system 0.000), 78% CPU | Elapsed application CPU time (seconds): 5.525, 54% CPU |
Triggered by Thread:0
Filtered syslog:
None found
Thread 0 name:Main ThreadDispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CoreUI 0x00000001891f9938 _CUICopySortedKeySignature + 232
1 CoreUI 0x00000001891f9894 _CUICopySortedKeySignature + 68
2 CoreUI 0x00000001891f9c14 CUICopyKeySignatureWithPrefix + 284
3 CoreUI 0x0000000189241680 - + 60
4 CoreUI 0x000000018922a0b8 - + 64
5 CoreUI 0x000000018922a05c - + 20
6 CoreUI 0x000000018926d3c0 - + 2192
7 CoreUI 0x000000018926cb2c - + 308
8 CoreUI 0x000000018926896c - + 184
9 CoreUI 0x0000000189268acc - + 156
10CoreUI 0x00000001892687a8 - + 160
11UIKit 0x000000018bec6a88 - + 628
12UIKit 0x000000018bec7d70 - + 400
13UIKit 0x000000018b4ad594 + + 380
14UIKit 0x000000018b329160 + + 124
15DTimmmr 0x000000010465acc8 + + 3747016 (UIStorage.mm:425)
16DTimmmr 0x000000010461b2b8 - + 3486392 (WelcomeScreenViewController.mm:47)
17UIKit 0x000000018b208f08 - + 1040
18UIKit 0x000000018b2b05f8 - + 76
19UIKit 0x000000018b2afa98 - + 196
20UIKit 0x000000018b2af49c - + 1168
21UIKit 0x000000018b2aef18 - + 164
22UIKit 0x000000018b2aee18 - + 188
23UIKit 0x000000018b478f74 _runAfterCACommitDeferredBlocks + 292
24UIKit 0x000000018b46c318 _cleanUpAfterCAFlushAndRunDeferredBlocks + 288
25UIKit 0x000000018b48418c __34-_block_invoke_2 + 152
26CoreFoundation 0x0000000181d7a0fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
27CoreFoundation 0x0000000181d799cc __CFRunLoopDoBlocks + 288
28CoreFoundation 0x0000000181d776dc __CFRunLoopRun + 1068
29CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
30GraphicsServices 0x0000000183b2ff84 GSEventRunModal + 100
31UIKit 0x000000018b26c2f4 UIApplicationMain + 208
32DTimmmr 0x00000001042d8038 main + 65592 (main.m:15)
33libdyld.dylib 0x00000001817ba56c start + 4
Thread 1 name:Dispatch queue: com.apple.CoreLocation.ConnectionClient.0x1c412c620.events
Thread 1:
0 libsystem_kernel.dylib 0x00000001818c8c18 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001817574d0 _dispatch_sema4_timedwait$VARIANT$mp + 84
2 libdispatch.dylib 0x0000000181757d40 _dispatch_semaphore_wait_slow + 72
3 CoreLocation 0x0000000188326aa8 0x188323000 + 15016
4 CoreLocation 0x000000018832c53c 0x188323000 + 38204
5 CoreLocation 0x000000018832c26c 0x188323000 + 37484
6 CoreLocation 0x0000000188383f58 0x188323000 + 397144
7 CoreLocation 0x000000018838032c 0x188323000 + 381740
8 CoreLocation 0x0000000188380250 0x188323000 + 381520
9 CoreLocation 0x0000000188381ae4 0x188323000 + 387812
10libxpc.dylib 0x0000000181a367d0 _xpc_connection_call_event_handler + 68
11libxpc.dylib 0x0000000181a34168 _xpc_connection_mach_event + 984
12libdispatch.dylib 0x0000000181755118 _dispatch_client_callout4 + 16
13libdispatch.dylib 0x000000018176b8b8 _dispatch_mach_msg_invoke$VARIANT$mp + 356
14libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
15libdispatch.dylib 0x000000018176c534 _dispatch_mach_invoke$VARIANT$mp + 952
16libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
17libdispatch.dylib 0x000000018175f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
18libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
19libdispatch.dylib 0x000000018175f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
20libdispatch.dylib 0x0000000181760200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
21libdispatch.dylib 0x00000001817684a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
22libsystem_pthread.dylib 0x00000001819fafd0 _pthread_wqthread + 932
23libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 2 name:7543851008
Thread 2:
0 libsystem_pthread.dylib 0x00000001819fac1c start_wqthread + 0
Thread 3 name:com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001826c16e4 - + 304
6 Foundation 0x00000001826e0afc - + 96
7 UIKit 0x000000018bdcb2f4 - + 136
8 Foundation 0x00000001827c2860 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
10libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
11libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 4 name:7619425472Dispatch queue: com.apple.root.default-qos
Thread 4:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 Foundation 0x00000001826d3b44 - + 764
3 Foundation 0x00000001826d7e28 - + 144
4 DTimmmr 0x0000000104476f64 - + 1765220 (GsmAddressBookManager.mm:163)
5 DTimmmr 0x000000010447a624 - + 1779236 (GsmAddressBookManager.mm:892)
6 DTimmmr 0x0000000104a1d924 - + 7690532 (NSObject+DebounceSelector.m:78)
7 DTimmmr 0x0000000104a1d6b0 - + 7689904 (NSObject+DebounceSelector.m:56)
8 DTimmmr 0x000000010447a594 - + 1779092 (GsmAddressBookManager.mm:879)
9 DTimmmr 0x000000010447a264 __53-_block_invoke + 1778276 (GsmAddressBookManager.mm:864)
10libdispatch.dylib 0x0000000181755088 _dispatch_call_block_and_release + 24
11libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
12libdispatch.dylib 0x000000018175c090 _dispatch_queue_override_invoke$VARIANT$mp + 716
13libdispatch.dylib 0x00000001817621c8 _dispatch_root_queue_drain + 596
14libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
15libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
16libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 5 name:7619384576Dispatch queue: com.apple.root.user-initiated-qos
Thread 5:
0 libsystem_platform.dylib 0x00000001819f7f0c DYLD-STUB$$OSAtomicAdd32 + 0
1 CoreFoundation 0x0000000181de214c - + 460
2 CoreFoundation 0x0000000181ca3d94 _CFXNotificationRegisterObserver + 1332
3 Foundation 0x00000001826b8530 - + 392
4 DTimmmr 0x0000000104622010 - + 3514384 (Contact.mm:116)
5 DTimmmr 0x0000000104627c94 + + 3538068 (Contact.mm:906)
6 DTimmmr 0x0000000104479f0c - + 1777420 (GsmAddressBookManager.mm:841)
7 DTimmmr 0x000000010447a10c __58-_block_invoke + 1777932 (GsmAddressBookManager.mm:856)
8 libdispatch.dylib 0x0000000181755088 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
10libdispatch.dylib 0x0000000181762378 _dispatch_root_queue_drain + 1028
11libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
12libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
13libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 6 name:AVAudioSession Notify Thread
Thread 6:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 AVFAudio 0x0000000187580774 GenericRunLoopThread::Entry+ 542580 (void*) + 164
6 AVFAudio 0x00000001875ab018 CAPThread::Entry+ 716824 (CAPThread*) + 84
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 7 name:Thread 0x0x127d240a0
Thread 7:
0 libsystem_kernel.dylib 0x00000001818e9570 __select + 8
1 DTimmmr 0x0000000104f26148 rtc::PhysicalSocketServer::Wait+ 12968264 (int, bool) + 696
2 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
3 DTimmmr 0x0000000104f2fc1c rtc::Thread::ProcessMessages+ 13007900 (int) + 120
4 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
5 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
6 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
7 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 8 name:Thread 0x0x127d24240
Thread 8:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92e8 rtc::Event::Wait+ 12784360 (int) + 244
3 DTimmmr 0x0000000104f1dae4 rtc::NullSocketServer::Wait+ 12933860 (int, bool) + 16
4 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
5 DTimmmr 0x0000000104f2fc1c rtc::Thread::ProcessMessages+ 13007900 (int) + 120
6 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 9 name:Thread 0x0x127d243e0
Thread 9:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92e8 rtc::Event::Wait+ 12784360 (int) + 244
3 DTimmmr 0x0000000104f1dae4 rtc::NullSocketServer::Wait+ 12933860 (int, bool) + 16
4 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
5 DTimmmr 0x0000000104f2fce8 rtc::Thread::ProcessMessages+ 13008104 (int) + 324
6 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 10 name:VoiceProcessThread
Thread 10:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92b8 rtc::Event::Wait+ 12784312 (int) + 196
3 DTimmmr 0x0000000104f089d4 webrtc::EventWrapperImpl::Wait+ 12847572 (unsigned long) + 16
4 DTimmmr 0x00000001051839d0 webrtc::ProcessThreadImpl::Process+ 15448528 () + 876
5 DTimmmr 0x0000000104efa06c rtc::PlatformThread::Run+ 12787820 () + 400
6 DTimmmr 0x0000000104ef9ed0 rtc::PlatformThread::StartThread+ 12787408 (void*) + 12
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 11 name:7548104896
Thread 11:
0 libsystem_pthread.dylib 0x00000001819fac1c start_wqthread + 0
Thread 12 name:7617291584Dispatch queue: WebRequestsOperationQueue (QOS: UNSPECIFIED)
Thread 12:
0 libsystem_kernel.dylib 0x00000001818ea800 kevent_id + 8
1 libdispatch.dylib 0x00000001817708f8 _dispatch_kq_poll + 204
2 libdispatch.dylib 0x00000001817712c0 _dispatch_event_loop_wait_for_ownership$VARIANT$mp + 432
3 libdispatch.dylib 0x0000000181763018 _dispatch_sync_wait + 416
4 DTimmmr 0x0000000104a84d74 - + 8113524 (DDLog.m:370)
5 DTimmmr 0x0000000104a85438 - + 8115256 (DDLog.m:510)
6 DTimmmr 0x0000000104a852d4 + + 8114900 (DDLog.m:0)
7 DTimmmr 0x0000000104a84f1c + + 8113948 (DDLog.m:403)
8 DTimmmr 0x00000001045de72c + + 3237676 (FSPLogger.m:89)
9 DTimmmr 0x00000001047f0ebc - + 5410492 (KandySDKLogger.m:37)
10DTimmmr 0x0000000104da4724 - + 508
11DTimmmr 0x0000000104dc9af4 - + 380
12CFNetwork 0x00000001825a9d48 __65-_block_invoke + 60
13CFNetwork 0x00000001825a9cec - + 204
14CFNetwork 0x00000001825a9e60 - + 56
15CFNetwork 0x0000000182564f60 _NSURLConnectionDidReceiveResponse+ 2170720 (_CFURLConnection*, _CFURLResponse*, void const*) + 84
16CFNetwork 0x00000001824b402c invocation function for block in URLConnectionClient_Classic::_delegate_didReceiveResponse+ 1445932 (_CFURLResponse*) + 108
17CFNetwork 0x00000001824af9d0 invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void + 1427920 (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer) + 108
18libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
19libdispatch.dylib 0x000000018175c6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
20CFNetwork 0x0000000182581f94 RunloopBlockContext::_invoke_block+ 2289556 (void const*, void*) + 36
21CoreFoundation 0x0000000181c97900 CFArrayApplyFunction + 80
22CFNetwork 0x0000000182581e58 RunloopBlockContext::perform+ 2289240 () + 128
23CFNetwork 0x00000001825831d8 MultiplexerSource::perform+ 2294232 () + 312
24CFNetwork 0x0000000182582f38 MultiplexerSource::_perform+ 2293560 (void*) + 60
25CoreFoundation 0x0000000181d7a2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
26CoreFoundation 0x0000000181d7a268 __CFRunLoopDoSource0 + 88
27CoreFoundation 0x0000000181d79af0 __CFRunLoopDoSources0 + 204
28CoreFoundation 0x0000000181d776c8 __CFRunLoopRun + 1048
29CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
30CoreFoundation 0x0000000181ce7098 CFRunLoopRun + 116
31DTimmmr 0x0000000104dc85c0 - + 680
32Foundation 0x000000018279f004 __NSOQSchedule_f + 404
33libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
34libdispatch.dylib 0x000000018175d3d4 _dispatch_continuation_pop$VARIANT$mp + 428
35libdispatch.dylib 0x000000018175bcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
36libdispatch.dylib 0x00000001817621c8 _dispatch_root_queue_drain + 596
37libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
38libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
39libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 13 name:com.squareup.SocketRocket.NetworkThread
Thread 13:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001826c16e4 - + 304
6 DTimmmr 0x000000010534bba8 - + 252
7 Foundation 0x00000001827c2860 __NSThread__start__ + 996
8 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
9 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
10libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 14 name:com.apple.NSURLConnectionLoader
Thread 14:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 CFNetwork 0x0000000182402264 + + 404
6 Foundation 0x00000001827c2860 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 15 name:7617336192Dispatch queue: cocoa.lumberjack
Thread 15:
0 libsystem_kernel.dylib 0x00000001818c8c00 semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001817573d4 _dispatch_sema4_wait$VARIANT$mp + 24
2 libdispatch.dylib 0x0000000181758328 _dispatch_group_wait_slow + 196
3 DTimmmr 0x0000000104a86840 - + 8120384 (DDLog.m:844)
4 DTimmmr 0x0000000104a84dd0 __40-_block_invoke + 8113616 (DDLog.m:362)
5 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
6 libdispatch.dylib 0x000000018175dae8 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 DTimmmr 0x0000000104a84d74 - + 8113524 (DDLog.m:370)
8 DTimmmr 0x0000000104a85438 - + 8115256 (DDLog.m:510)
9 DTimmmr 0x0000000104a852d4 + + 8114900 (DDLog.m:0)
10DTimmmr 0x0000000104a84f1c + + 8113948 (DDLog.m:403)
11DTimmmr 0x00000001045de72c + + 3237676 (FSPLogger.m:89)
12DTimmmr 0x00000001047f0ebc - + 5410492 (KandySDKLogger.m:37)
13DTimmmr 0x0000000104da4724 - + 508
14DTimmmr 0x0000000104dc9af4 - + 380
15CFNetwork 0x00000001825a9d48 __65-_block_invoke + 60
16CFNetwork 0x00000001825a9cec - + 204
17CFNetwork 0x00000001825a9e60 - + 56
18CFNetwork 0x0000000182564f60 _NSURLConnectionDidReceiveResponse+ 2170720 (_CFURLConnection*, _CFURLResponse*, void const*) + 84
19CFNetwork 0x00000001824b402c invocation function for block in URLConnectionClient_Classic::_delegate_didReceiveResponse+ 1445932 (_CFURLResponse*) + 108
20CFNetwork 0x00000001824af9d0 invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void + 1427920 (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer) + 108
21libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
22libdispatch.dylib 0x000000018175c6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
23CFNetwork 0x0000000182581f94 RunloopBlockContext::_invoke_block+ 2289556 (void const*, void*) + 36
24CoreFoundation 0x0000000181c97900 CFArrayApplyFunction + 80
25CFNetwork 0x0000000182581e58 RunloopBlockContext::perform+ 2289240 () + 128
26CFNetwork 0x00000001825831d8 MultiplexerSource::perform+ 2294232 () + 312
27CFNetwork 0x0000000182582f38 MultiplexerSource::_perform+ 2293560 (void*) + 60
28CoreFoundation 0x0000000181d7a2e8
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>我们发现,在 ios11 中,苹果减少了应用程序在后台启动应用程序所需的时间(在我们的例子中是 2.9 秒),所以当你超过它时,应用程序会自动被 IOS 杀死.
所以我们找到解决方案,尽量减少加载时间(例如尽量减少启动画面等),并删除不需要在后台工作的代码。我们让我们的应用在 1.8 秒后启动,然后崩溃问题得到解决</p></p>
<p style="font-size: 20px;">关于当应用程序终止时 PushKit 接收推送时,IOS 11 应用程序崩溃,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/47156318/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/47156318/
</a>
</p>
页:
[1]