在iOS / callStackReturnAddresses和callStackSymbols中进行调试

时间:2013-10-01 08:55:26

标签: ios debugging exception symbolicate

我在我的iOS应用程序中设置了uncaughtExceptionHandler,并从用户那里获得了以下数据,但我不知道如何解释它们以找到错误的位置。 加号背后的数字是多少?我如何使用地址来获取错误的位置?

callStackReturnAddresses

(0x305b1f53 0x3ac1a6af 0x304e85f3 0xe7cd5 0x32d3d419 0x32eb3e0b 0x32dd1a83 0x32dd188d 0x32dd1825 0x32d23023 0x329ac24b 0x329a7a5b 0x329a78ed 0x329a72ff 0x329a710f 0x329a0e3d 0x3057d1d5 0x3057ab79 0x3057aebb 0x304e5ce7 0x304e5acb 0x351b3283 0x32d87a41 0xb51d7 0xb5198)

callStackSymbols

(
    0   CoreFoundation                      0x305b1f6b <redacted> + 154
    1   libobjc.A.dylib                     0x3ac1a6af objc_exception_throw + 38
    2   CoreFoundation                      0x304e85f3 <redacted> + 230
    3   MyApp                               0x000e7cd5 MyApp + 236757
    4   UIKit                               0x32d3d419 <redacted> + 472
    5   UIKit                               0x32eb3e0b <redacted> + 834
    6   UIKit                               0x32dd1a83 <redacted> + 418
    7   UIKit                               0x32dd188d <redacted> + 44
    8   UIKit                               0x32dd1825 <redacted> + 184
    9   UIKit                               0x32d23023 <redacted> + 346
    10  QuartzCore                          0x329ac24b <redacted> + 142
    11  QuartzCore                          0x329a7a5b <redacted> + 350
    12  QuartzCore                          0x329a78ed <redacted> + 16
    13  QuartzCore                          0x329a72ff <redacted> + 230
    14  QuartzCore                          0x329a710f <redacted> + 314
    15  QuartzCore                          0x329a0e3d <redacted> + 56
    16  CoreFoundation                      0x3057d1d5 <redacted> + 20
    17  CoreFoundation                      0x3057ab79 <redacted> + 284
    18  CoreFoundation                      0x3057aebb <redacted> + 730
    19  CoreFoundation                      0x304e5ce7 CFRunLoopRunSpecific + 522
    20  CoreFoundation                      0x304e5acb CFRunLoopRunInMode + 106
    21  GraphicsServices                    0x351b3283 GSEventRunModal + 138
    22  UIKit                               0x32d87a41 UIApplicationMain + 1136
    23  MyApp                               0x000b51d7 MyApp + 29143
    24  MyApp                               0x000b5198 MyApp + 29080
)

1 个答案:

答案 0 :(得分:1)

符号在设备端可用不可靠,在iOS 6及更高版本中,许多系统符号只是<redacted>

从这里开始:https://code.google.com/p/plcrashreporter/issues/detail?id=40