【问题标题】:App is getting crashed on app launch in iOS 13 beta version在 iOS 13 测试版中,应用程序在应用程序启动时崩溃
【发布时间】:2020-01-10 20:43:24
【问题描述】:

这是崩溃报告,崩溃仅发生在 iOS 13 测试版上:-

 Crashed: com.apple.main-thread
 0  libsystem_pthread.dylib        0x1ae056484 pthread_get_qos_class_np + 8
 1  Foundation                     0x1ae664340 -[NSThread qualityOfService] + 80
 2  Foundation                     0x1ae626ebc -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 280
 3  Foundation                     0x1ae628df8 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:] + 116
 4  libAXSpeechManager.dylib       0x1d0176884 -[AXSpeechManager isSpeaking] + 112
 5  libAXSpeechManager.dylib       0x1d0171b60 -[AXSpeechManager _didBeginInterruption] + 52
 6  libAXSpeechManager.dylib       0x1d0171f1c -[AXSpeechManager _handleAudioInterruption:] + 504
 7  CoreFoundation                 0x1ae2929ac __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
 8  CoreFoundation                 0x1ae2929f4 ___CFXRegistrationPost1_block_invoke + 64
 9  CoreFoundation                 0x1ae291d54 _CFXRegistrationPost1 + 368
 10 CoreFoundation                 0x1ae291a20 ___CFXNotificationPost_block_invoke + 104
 11 CoreFoundation                 0x1ae20dd38 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1416
 12 CoreFoundation                 0x1ae291370 _CFXNotificationPost + 1244
 13 Foundation                     0x1ae5edcf8 -[NSNotificationCenter  postNotificationName:object:userInfo:] + 60
 14 AVFAudio                       0x1bac4603c -[AVAudioSession privateInterruptionWithInfo:] + 988
 15 AVFAudio                       0x1bac4880c (anonymous namespace)::HandlePropertyListenerCallback(unsigned int, objc_selector*, NSObject*) + 68
 16 libdispatch.dylib              0x1ae004658 _dispatch_call_block_and_release + 24
 17 libdispatch.dylib              0x1ae0051cc _dispatch_client_callout + 16
 18 libdispatch.dylib              0x1adfe83e0 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 996
 19 CoreFoundation                 0x1ae2b4c74 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
 20 CoreFoundation                 0x1ae2afc68 __CFRunLoopRun + 2004
 21 CoreFoundation                 0x1ae2af16c CFRunLoopRunSpecific +  464
 22 GraphicsServices               0x1b80d9328 GSEventRunModal + 104
 23 UIKitCore                      0x1b2317f6c UIApplicationMain + 1936
 24 Quickride                      0x10086803c main + 37 (AppDelegate.swift:37)
 25 libdyld.dylib                  0x1ae13a424 start + 4

我已经在各种平台上检查过这个问题。但是没有找到相关的解决方案,请提供相关的解决方案。

它在应用启动时崩溃,这是它在 fabric 上显示的报告

【问题讨论】:

  • 您是否确保升级到最新的 Fabric 并根据需要对代码进行任何更新?
  • 这与 Fabric 无关。我们偶尔也会在我们的应用程序中看到它,而且我们不使用 Fabric。不幸的是,我们自己无法重现这次崩溃。
  • 对我们来说也是如此。现在这是我们最严重的崩溃。无论在后台花费多少时间,它似乎都会在应用程序处于后台时发生。最重要的是,这发生在最终的 iOS 13.1 中,也许你可以更新这个主题的标题
  • 我们在 iOS 13 上也有同样的问题。

标签: ios swift crash ios13


【解决方案1】:

我在 iOS 13 上遇到了同样的问题,这是我在 Crashlytics 上最严重的崩溃。 它仅发生在 iOS 13 及更高版本中。不幸的是,在最新的 13.1.2 中也是如此。

从 iOS 13 版本开始,当我将应用程序置于后台调试控制台打印时,我检测到一个奇怪的警告 无法结束 BackgroundTask:不存在标识符为 x 的后台任务,或者它可能已经存在结束了。中断 UIApplicationEndBackgroundTaskError() 进行调试。

也许这些问题是相关的。

【讨论】:

  • 我在 iOS 13 上遇到了同样的问题...Can't end BackgroundTask: no background task exists with identifier 6 (0x6), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug. 今天我只修复了特定 iOS 13 上的 4 个问题。iOS 13 上发生了什么:(
猜你喜欢
  • 2020-01-25
  • 2018-12-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多