美文网首页iOS 的那些事儿
iOS查看崩溃日志的方法

iOS查看崩溃日志的方法

作者: 优雅地小男子 | 来源:发表于2018-04-25 15:30 被阅读974次

    方法一:使用iTunes工具查看崩溃文件

    (1)原理:APP崩溃后的日志是保存在手机上的,需要与电脑上的iTunes同步,即将崩溃日志保存在电脑上的文件夹中
    (2)具体文件位置:

    Mac OS X:~/Library/Logs/CrashReporter/MobileDevice
    
    Windows XP:C:\Documents and Settings\Application Data\Apple computer\Logs\CrashReporter
    
    Windows 7/Vista: C:\Users\计算机登录名\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice
    
    

    方法二:使用Xcode工具直接查看崩溃内容(推荐)

    (1)具体操作:将设备连接到电脑上,然后打开Xcode。从菜单栏上选择 【Window】 菜单, 然后选择【 Devices】 .在窗口上, 选中对应的设备后,点击 【View Device logs】 按钮

    (2)示意图如下

    • 【Window】 菜单, 然后选择【 Devices】


      1
    • 选中对应的设备


      2
    • 点击 【View Device logs】 按钮


      3

    方法三:使用iTunes Connect查看崩溃日志(新版已不支持)

    • 进入iTunes connect-》App分析

    方法四:使用第三方软件itools

    • 打开itools:高级功能-》崩溃日志

    相关文章

      网友评论

        本文标题:iOS查看崩溃日志的方法

        本文链接:https://www.haomeiwen.com/subject/ihlylftx.html