怎么看iOS应用ios 崩溃日志怎么看

iOS App 遇到 App 异常崩溃后启动一直奔溃的问题,通过 Xcode Devices 实时记录了 log,但是并没有看懂日志文件,现在贴出来请教高人 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
已注册用户请 &
iOS 开发实用技术导航
NSHipster 中文版
cocos2d 开源 2D 游戏引擎
Google Analytics for Mobile 统计解决方案
Design Guides and Resources
Transcripts of WWDC sessions
Cocoa with Love
Cocoa Dev Central
iOS 开发实用书单
Style Guides
Useful Tools and Services
iOS App 遇到 App 异常崩溃后启动一直奔溃的问题,通过 Xcode Devices 实时记录了 log,但是并没有看懂日志文件,现在贴出来请教高人
16:59:49 +08:00 · 2025 次点击
Sep 23 16:48:26 iPhone-6-white SpringBoard[58] &Error&:
SecTrustEvaluate
[leaf IssuerCommonName SubjectCommonName]
Sep 23 16:48:26 iPhone-6-white SpringBoard[58] &Error&:
SecTrustEvaluate
[leaf IssuerCommonName SubjectCommonName]
Sep 23 16:48:30 iPhone-6-white backboardd[60] &Warning&: CoreAnimation: timed out fence 34def
Sep 23 16:48:40 iPhone-6-white SpringBoard[58] &Warning&: Forcing crash report of &FBApplicationProcess: 0x; L pid: 291& (reason: 1, description: com.weiling.liaoba.mosheng failed to scene-create after 19.89s (launch took 0.11s of total time limit 20.00s))
Sep 23 16:48:40 iPhone-6-white diagnosticd[83] &Error&: unable to find offset 0x822eb98c in shared cache for arch 'arm64'
Sep 23 16:48:40 iPhone-6-white SpringBoard[58] &Warning&: Finished crash reporting.
Sep 23 16:48:40 iPhone-6-white SpringBoard[58] &Warning&: BSXPCMessage received error for message: Connection invalid
Sep 23 16:48:40 iPhone-6-white SpringBoard[58] &Warning&: BSXPCMessage received error for message: Connection invalid
Sep 23 16:48:40 iPhone-6-white SpringBoard[58] &Warning&: BSXPCMessage received error for message: Connection invalid
Sep 23 16:48:40 iPhone-6-white com.apple.xpc.launchd[1] (UIKitApplication:com.weiling.liaoba.mosheng[0xc0df][291]) &Notice&: Service exited due to signal: Killed: 9
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Warning&: Report of type '109(109_Liaoba)' not saved because the limit of 25 logs has been reached
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Notice: This report is abbreviated for syslog inclusion because it could not be saved to disk.
Symbolication may be possible by manually cleaning up and including the Binary Image section of a full report from this same device -- good luck!
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Process:
Liaoba [291]
/var/containers/Bundle/Application/296B1307-FBC4-4D43-94D1-E3B67D765924/Liaoba.app/Liaoba
OS Version:
iOS 9.3.4 (13G35)
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Exception Type:
Exception Codes: 0xbadf00d
Exception Note:
SIMULATED (this is NOT a crash)
Highlighted by Thread:
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Application Specific Information:
com.weiling.liaoba.mosheng failed to scene-create after 19.89s (launch took 0.11s of total time limit 20.00s)
Elapsed total CPU time (seconds): 1.410 (user 1.410, system 0.000), 5% CPU
Elapsed application CPU time (seconds): 0.019, 0% CPU
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Thread 0 name:
Dispatch queue: com.apple.main-thread
libsystem_kernel.dylib
0xf3f8000 + 4116
libsystem_platform.dylib
0xd697c 0x + 10620
libdispatch.dylib
0xc63c4 0x + 9156
0xe892c 0x + 7080236
0xead28 0x + 7089448
0xeaf84 0x + 7090052
0xeadbc 0x + 7089596
0xe88a8 0x + 7080104
0xe84bc 0x + 7079100
0xe028000 + 7080336
libdispatch.dylib
0xc547c 0x + 5244
libdispatch.dylib
0xc62c0 0x + 8896
0xe892c 0x + 7080236
0xea540 0x + 7087424
0xea49c 0x + 7087260
0xd2ed4 0x + 61140
0xd2ba8 0x + 60328
0xe9c4000 + 116344
0xded4 0x + 6856404
0xced0 0x + 6852304
0xcb04 0x + 6851332
0xa9c4000 + 660032
0xa9c4000 + 659800
0xb7eec 0x + 2686700
0xa4e9c0 0x + 567744
0xc7e184 0x + 2859396
0xc825f0 0x + 2876912
0xc7f764 0x + 2864996
FrontBoardServices
0xb7ac 0x + 161708
FrontBoardServices
0xb618 0x + 161304
FrontBoardServices
0xb9c8 0x + 162248
CoreFoundation
0x109c 0x + 921756
CoreFoundation
0x0b30 0x + 920368
CoreFoundation
0xe830 0x + 911408
CoreFoundation
0x8c50 0x + 35920
0xa9c4000 + 538956
0xa9c4000 + 516232
0xcb2dc 0x + 2765532
libdyld.dylib
0xf68b8 0x + 10424
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Thread 1 name:
Dispatch queue: com.apple.libdispatch-manager
libsystem_kernel.dylib
0x54d8 0x + 120024
libdispatch.dylib
0xd87d8 0x + 83928
libdispatch.dylib
0xc2c4000 + 13896
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Thread 2:
libsystem_kernel.dylib
0x4b48 0x + 117576
libsystem_pthread.dylib
0xdd530 0x + 5424
libsystem_pthread.dylib
0xdd020 0x + 4128
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Thread 3:
libsystem_kernel.dylib
0x4b48 0x + 117576
libsystem_pthread.dylib
0xdd530 0x + 5424
libsystem_pthread.dylib
0xdd020 0x + 4128
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Thread 4 name:
com.apple.NSURLConnectionLoader
libsystem_kernel.dylib
0xf8fd8 0x + 4056
libsystem_kernel.dylib
0xf8e54 0x + 3668
CoreFoundation
0x0c60 0x + 920672
CoreFoundation
0xe964 0x + 911716
CoreFoundation
0x8c50 0x + 35920
0xed9bcc 0x182e2c000 + 711628
Foundation
0xfe4c 0x + 998988
libsystem_pthread.dylib
0xdfb28 0x + 15144
libsystem_pthread.dylib
0xdfa8c 0x + 14988
libsystem_pthread.dylib
0xdd028 0x + 4136
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: Thread 5 name:
com.apple.CFSocket.private
libsystem_kernel.dylib
0x3f8000 + 115524
CoreFoundation
0x71c8 0x + 946632
libsystem_pthread.dylib
0xdfb28 0x + 15144
libsystem_pthread.dylib
0xdfa8c 0x + 14988
libsystem_pthread.dylib
0xdd028 0x + 4136
Sep 23 16:48:40 iPhone-6-white ReportCrash[292] &Error&: No thread state (register information) available
Sep 23 16:48:40 iPhone-6-white SpringBoard[58] &Warning&: Application 'UIKitApplication:com.weiling.liaoba.mosheng[0xc0df]' exited abnormally via signal.
Sep 23 16:48:40 iPhone-6-white UserEventAgent[26] &Warning&: : id=com.weiling.liaoba.mosheng pid=291, state=0
Sep 23 16:48:40 iPhone-6-white SpringBoard[58] &Error&:
SecTrustEvaluate
[leaf IssuerCommonName SubjectCommonName]
Sep 23 16:48:40 iPhone-6-white kernel[0] &Notice&: xpcproxy[293] Container: /private/var/mobile/Containers/Data/Application/D1FDC-49EB-A53F-1C0AC52003A8 (sandbox)
Sep 23 16:48:40 iPhone-6-white com.apple.xpc.launchd[1] &Error&: assertion failed: 13G35: launchd + F6284CF-8A17-36CC-9DB5-85D510A21F14]: 0x3
Sep 23 16:48:40 iPhone-6-white Liaoba[293] &Warning&: Reachability Flag Status: -R ------- networkStatusForFlags
14 回复 &| &直到
16:16:21 +08:00
& & 17:04:27 +08:00
类似问题在 iOS 7 的设备崩溃后 App 能正常启动,目前测试发现崩溃后不能正常启动发生在 iOS 9
& & 17:10:31 +08:00
你就不能使用 DSYM 把这个 crash 日志解析出来吗,这谁能看懂!
& & 17:11:32 +08:00
启动超时?看看 AppDelegate 里面的 didFinishLaunch 里面是不是死循环了?
& & 17:31:45 +08:00
@ 仔细看了看是启动时间接近 20s 了,被系统干掉了,估计 iOS 9 的机制,目前还在寻找费时的地方
& & 17:34:16 +08:00
@ 天真了,就是没有奔溃异常被捕捉到,不然就 不会提问,
& & 18:07:37 +08:00
装个 fabric ,捕获比较容易
& & 18:14:39 +08:00
@ 目前是用的友盟统计,没有成功记录崩溃信息,因为项目中混合很多 C++的静态库与代码实现, fabric 有什么特别?
& & 18:46:59 +08:00
Exception Codes: 0xbadf00d
ate bad food
内存吃紧了。
& & 18:48:49 +08:00
& & 19:02:18 +08:00
第三方库装多了吧
& & 02:06:12 +08:00 via iPhone
@ 友盟当然不能和这个专业的比
& & 11:32:55 +08:00
Exception Note:
SIMULATED (this is NOT a crash)
应该是是超时被干掉了。
可以用 hopper disassembler 打开你的二进制文件 go to fileo ffset : 7080236
就可以看到是什么问题了
& & 14:57:21 +08:00
@ 只能是最后一招试试了,正向的问题都需要逆向方案去解决了?
& & 16:16:21 +08:00
此处收楼了,最后比对 commit 发现是 cocoapods pod 'MMPlaceHolder', '~& 1.9',代码中没有使用该库,迷之 BUG 告一段落了
& · & 1683 人在线 & 最高记录 3541 & · &
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.0 · 50ms · UTC 12:21 · PVG 20:21 · LAX 05:21 · JFK 08:21? Do have faith in what you're doing.[閿欒?鍒嗘瀽]娴嬭瘯璁惧?鐨勫穿婧冩棩蹇椾細琚?弸鐩熺殑閿欒?鍒嗘瀽鏀堕泦鍒板悧
鐢垫?鐩磋揪
濡傞?锛屾祴璇曡?澶囩殑宕╂簝鏃ュ織锛屼細琚?敹闆嗗苟褰掔被鍒扳}

我要回帖

更多关于 ios应用崩溃日志分析 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信