我在App Store中的iOS App在iOS 12上运行良好,我尝试将其安装在带有iOS 13 Developer Beta 2的开发设备上,但在启动时崩溃。崩溃一旦启动就会崩溃,因此无法使用crashlytics获取崩溃数据。
我尝试使用Xcode 11 Beta 2,但不幸的是,某些预编译框架(Swift 5.0)不允许我在Xcode 11上运行。我成功使用崩溃解析获取了崩溃报告,如下所述。
# 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
这是Crashlytics信息中心中的错误
<compiler-generated> line 0
thunk for @escaping @callee_guaranteed () -> ()
答案 0 :(得分:0)
在许多不眠之夜后,我自己找出崩溃的原因。
在某些控制器中,我强制转换UISearchbar子视图以自定义UITextField似乎是这样的问题
if let searchTextField:UITextField = self.searchView.subviews[0].subviews.last{}
因此,如果您在iOS 13上遇到此问题,请删除自定义项。