ios - 你们是怎么检测crash信息 并且分析的, 有什么好动工具推荐?
PHP中文网
PHP中文网 2017-04-17 17:24:20
[iOS讨论组]

我用crashlytics网站, 但不太会分析crash信息, 有的很难定位原因, 有没有这方面的文章和教程参考?

PHP中文网
PHP中文网

认证0级讲师

全部回复(4)
黄舟

Tencent Bugly

大家讲道理

你可以贴一个cranch出来,可以是比较难定位的bug,分析主要是方法。

1.18 我发现一个说法是注册监听UIApplicationDidEnterBackgroundNotification 对象还没移除观察就被释放了,你可以针对这方面去debug一下。

PHP中文网

用过LeanCloud的Crash信息收集,腾讯 Bugly 也很有名气

怪我咯

这个信息能定位到 applicationDidEnterBackground 方法的具体的行数, 但是看不出神马原因报的错,帮忙看看

Thread : Crashed: com.apple.main-thread
0  libsystem_kernel.dylib         0x181438140 __pthread_kill + 8
1  libsystem_pthread.dylib        0x181500ef8 pthread_kill + 112
2  libsystem_c.dylib              0x1813a9dac abort + 140
3  libswiftCore.dylib             0x100a39d80 swift::fatalError(char const*, ...) + 182
4  libswiftCore.dylib             0x100a16efc swift::swift_dynamicCastFailure(void const*, char const*, void const*, char const*, char const*) + 70
5  libswiftCore.dylib             0x100a16f80 swift::swift_dynamicCastFailure(swift::Metadata const*, swift::Metadata const*, char const*) + 130
6  libswiftCore.dylib             0x100a17014 swift_dynamicCastClassUnconditional + 94
7  bigmarker                      0x10014690c @objc bigmarker.AppDelegate.applicationDidEnterBackground (bigmarker.AppDelegate)(ObjectiveC.UIApplication) -> () (AppDelegate.swift:68)
8  UIKit                          0x186834e9c __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 228
9  UIKit                          0x1869017e0 +[UIViewController _performWithoutDeferringTransitions:] + 128
10 UIKit                          0x186834d64 -[UIApplication _applicationDidEnterBackground] + 100
11 UIKit                          0x1868352e0 -[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:] + 700
12 UIKit                          0x186845038 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 448
13 UIKit                          0x18682f588 __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 152
14 UIKit                          0x18682f210 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 712
15 FrontBoardServices             0x182e4b790 -[FBSSerialQueue _performNext] + 184
16 FrontBoardServices             0x182e4bb10 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
17 CoreFoundation                 0x18184cefc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
18 CoreFoundation                 0x18184c990 __CFRunLoopDoSources0 + 540
19 CoreFoundation                 0x18184a690 __CFRunLoopRun + 724
20 CoreFoundation                 0x181779680 CFRunLoopRunSpecific + 384
21 GraphicsServices               0x182c88088 GSEventRunModal + 180
22 UIKit                          0x1865f0d90 UIApplicationMain + 204
23 bigmarker                      0x1001486f8 main (AppDelegate.swift:15)
24 libdyld.dylib                  0x18131a8b8 start + 4
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号