[英]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.