扫码关注官方订阅号
我用crashlytics网站, 但不太会分析crash信息, 有的很难定位原因, 有没有这方面的文章和教程参考?
认证0级讲师
Tencent Bugly
你可以贴一个cranch出来,可以是比较难定位的bug,分析主要是方法。
cranch
1.18 我发现一个说法是注册监听UIApplicationDidEnterBackgroundNotification 对象还没移除观察就被释放了,你可以针对这方面去debug一下。
UIApplicationDidEnterBackgroundNotification
用过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
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
Tencent Bugly
你可以贴一个
cranch出来,可以是比较难定位的bug,分析主要是方法。1.18 我发现一个说法是注册监听
UIApplicationDidEnterBackgroundNotification对象还没移除观察就被释放了,你可以针对这方面去debug一下。用过LeanCloud的Crash信息收集,腾讯 Bugly 也很有名气
这个信息能定位到 applicationDidEnterBackground 方法的具体的行数, 但是看不出神马原因报的错,帮忙看看