Ios 进入背景后发生奇怪的碰撞?

Ios 进入背景后发生奇怪的碰撞?,ios,swift,crash-reports,crashlytics,Ios,Swift,Crash Reports,Crashlytics,我有一些这样的崩溃(来自Crashlytics),我无法理解 任何人都能理解这是怎么回事 我可以看到它发生在applicationIdentinterBackground之后。这是否意味着应用程序进入后台后会崩溃 Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x181b9db90 objc_msgSend + 16 1 CoreFoundation 0x182

我有一些这样的崩溃(来自Crashlytics),我无法理解

任何人都能理解这是怎么回事

我可以看到它发生在
applicationIdentinterBackground
之后。这是否意味着应用程序进入后台后会崩溃

Thread : Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x181b9db90 objc_msgSend + 16
1  CoreFoundation                 0x1825314a4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1548
2  CoreFoundation                 0x182406788 _CFXNotificationPost + 368
3  Foundation                     0x182e0e89c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
4  UIKit                          0x18791f124 __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 320
5  UIKit                          0x1879ef5e4 +[UIViewController _performWithoutDeferringTransitions:] + 128
6  UIKit                          0x18791ef90 -[UIApplication _applicationDidEnterBackground] + 100
7  UIKit                          0x18791f514 -[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:] + 700
8  UIKit                          0x18792f990 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 448
9  UIKit                          0x18791961c __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 152
10 UIKit                          0x1879192a4 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 712
11 FrontBoardServices             0x183ec77ac __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
12 FrontBoardServices             0x183ec7618 -[FBSSerialQueue _performNext] + 168
13 FrontBoardServices             0x183ec79c8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
14 CoreFoundation                 0x1824dd124 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
15 CoreFoundation                 0x1824dcbb8 __CFRunLoopDoSources0 + 540
16 CoreFoundation                 0x1824da8b8 __CFRunLoopRun + 724
17 CoreFoundation                 0x182404d10 CFRunLoopRunSpecific + 384
18 GraphicsServices               0x183cec088 GSEventRunModal + 180
19 UIKit                          0x1876d9f70 UIApplicationMain + 204
20 Trenìt!                       0x1000f32e4 main (AppDelegate.swift:14)
21 libdispatch.dylib              0x181fa28b8 (Missing)

当您只需“按下主页按钮”(设备上的实际主页按钮或模拟器上的命令)或退出多任务处理时,是否会发生这种情况?如果退出多任务处理,这种情况通常会发生。我不确定它何时发生。我无法复制它。此日志来自Crashlytics。您最好尝试复制它。在模拟器上运行它,点击command-shift-h两次,然后向上滑动你的应用程序,使其脱离多任务处理。如果它崩溃(尝试多次,最终会崩溃),比较崩溃日志,看看它们是否相同。您是否停止进入后台的任务?喜欢下载吗?@Quver,不,我不会做那样的事