简体   繁体   English

如何在打开应用程序时修复iOS 13 beta应用程序崩溃?

[英]How to fix iOS 13 beta app crash upon opening the app?

My iOS App in App Store works well on iOS 12, and I tried installing it on my development device with iOS 13 Developer Beta 2, but it crashes on launch. 我在App Store中的iOS应用程序在iOS 12上运行良好,我尝试在iOS 13 Developer Beta 2的开发设备上安装它,但它在启动时崩溃了。 It's impossible to get the crash data using crashlytics as it crashes as soon as it launches. 使用crashlytics获取崩溃数据是不可能的,因为它一旦启动就会崩溃。

I tried on Xcode 11 Beta 2, but unfortunately some pre compiled framework (Swift 5.0) doesn't allow me to run on Xcode 11. I managed to get a crash report once using crashlytics, posted below. 我尝试使用Xcode 11 Beta 2,但遗憾的是一些预编译框架(Swift 5.0)不允许我在Xcode 11上运行。我设法使用crashlytics获得崩溃报告,如下所示。

# Version: 1.58 (1)
   # Bundle Identifier: ------
   # Issue ID: db3066baxxxxxxxeb956f1be
   # Session ID: 013965e31e2d40xxxxxxxx_v2
   # Date: 2019-06-20T08:18:00Z
   # OS Version: 13.0.0 (17A5508m)
   # Device: iPhone XR
   # RAM Free: 3%
   # Disk Free: 9.2%

   #0. Crashed: com.apple.main-thread
    0  libsystem_kernel.dylib         0x1af2e6f04 __pthread_kill + 8
    1  libsystem_pthread.dylib        0x1af4bec20 pthread_kill + 224
    2  (Missing)                      0x721e0e01af366c00 (Missing)
    3  (Missing)                      0x0 (Missing)
    4  (Missing)                      0xe26c301cfe8a500 (Missing)
    5  (Missing)                      0x0 (Missing)
    6  (Missing)                      0x19607b81cfedc900 (Missing)
    7  (Missing)                      0x4c0f0501048ed400 (Missing)
    8  Libra                          0x104c77988 thunk for @escaping          @callee_guaranteed () -> () (<compiler-generated>)
    9  libdispatch.dylib              0x1af482114 _dispatch_client_callout + 20
    10 (Missing)                      0x0 (Missing)
    11 (Missing)                      0x0 (Missing)
    12 (Missing)                      0x574aff81af494800 (Missing)
    13 (Missing)                      0x0 (Missing)
    14 (Missing)                      0x0 (Missing)
    15 (Missing)                      0x502dbc81aec0ec00 (Missing)
    16 (Missing)                      0x3d78bc81aec0e000 (Missing)
    17 (Missing)                      0x0 (Missing)
    18 (Missing)                      0x0 (Missing)
    19 (Missing)                      0x0 (Missing)
    20 libdyld.dylib                  0x1af178964 start + 4

This is the error in Crashlytics Dashboard 这是Crashlytics Dashboard中的错误

<compiler-generated> line 0
thunk for @escaping @callee_guaranteed () -> ()

Figured out the Crash by myself after many Sleepless nights. 在许多不眠之夜之后,我自己想出了崩溃。

Seems like this has been the issue in some of the controllers where I casted the UISearchbar subview to customise the UITextField 这似乎是一些控制器中的问题,我在这些控制器中投放了UISearchbar子视图来自定义UITextField

if let searchTextField:UITextField = self.searchView.subviews[0].subviews.last{}

So if you come across this issue on iOS 13, Please remove the customisation. 因此,如果您在iOS 13上遇到此问题,请删除自定义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我已将 Widgetkit 添加到我的应用程序中,但现在当应用程序在 Xcode 12 beta 上启动时在 iOS 13 上崩溃 - I have added Widgetkit to my app but now crash on iOS 13 when the app starts on Xcode 12 beta 应用程序开始在iOS 9.1 Beta 2上崩溃 - App began to crash on iOS 9.1 Beta 2 应用卡在带有Xcode 11 beta的iOS 13 beta模拟器上,但在带有Xcode 10的iOS 13 beta模拟器上运行良好 - App stuck on iOS 13 beta simulator with Xcode 11 beta but working fine on iOS 13 beta simulator with Xcode 10 iOS幻灯片菜单导致应用崩溃。 怎么修? - iOS Slide out menu is causing app to crash. How to fix? 初始化MPVolumeView会导致iOS 11 beta 3上的应用程序崩溃 - Initialising MPVolumeView causes app crash on iOS 11 beta 3 iOS 13:Flurry Unity SDK 启动时应用程序崩溃 - iOS 13: app crash on start by Flurry Unity SDK KVO 观察 AVPlayer 导致 iOS 13 中的应用程序崩溃 - KVO Observing AVPlayer causes App crash in iOS 13 iOS 13 应用程序在后台使用 sinch 时调用包崩溃 - iOS 13 callkit crash when app in background using sinch iOS 13 UserDefaults:在某些设备上启动时应用程序崩溃 - iOS 13 UserDefaults: app crash on start on some devices 在 Swift iOS 中创建输入管道时应用程序崩溃(信号 13) - App crash (Signal 13) while creating input pipe in Swift iOS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM