iPhone崩溃 - 如何阅读日志

时间:2011-10-17 07:41:22

标签: iphone crash

我的iPhone上的应用程序有时会崩溃,我找不到原因和地点。这是我的日志:

-[Order bytes]: unrecognized selector sent to instance 0x335070
 Stack: (
"0   My App                              0x00012de5 My App + 73189",
"1   My App                              0x00013047 My App + 73799",
"2   CoreFoundation                      0x36d15987 __handleUncaughtException + 74",
"3   libobjc.A.dylib                     0x320852d1 _objc_terminate + 128",
"4   libc++abi.dylib                     0x36d783c5 _ZL19safe_handler_callerPFvvE + 76",
"5   libc++abi.dylib                     0x36d78451 _ZdlPv + 0",
"6   libc++abi.dylib                     0x36d7979f __cxa_throw + 122",
"7   libobjc.A.dylib                     0x32085223 objc_exception_throw + 94",
"8   CoreFoundation                      0x36d18acb -[NSObject doesNotRecognizeSelector:] + 174",
"9   CoreFoundation                      0x36d17945 ___forwarding___ + 300",
"10  CoreFoundation                      0x36c72680 _CF_forwarding_prep_0 + 48",
"11  CoreFoundation                      0x36c64bdd CFDataGetBytePtr + 96",
"12  Foundation                          0x337af8db -[NSKeyedUnarchiver initForReadingWithData:] + 322",
"13  Foundation                          0x337d3651 +[NSKeyedUnarchiver unarchiveObjectWithData:] + 52",
"14  My App                              0x0000eef1 My App + 57073",
"15  Foundation                          0x337ada91 -[NSThread main] + 72",
"16  Foundation                          0x338415a1 __NSThread__main__ + 1048",
"17  libsystem_c.dylib                   0x37cb8c1d _pthread_start + 320",
"18  libsystem_c.dylib                   0x37cb8ad8 thread_start + 8"
)

能不能帮我理解这个?

2 个答案:

答案 0 :(得分:0)

bialek,

设置断点以查找您的错误。代码中的哪一行...

答案 1 :(得分:0)

有时,NSKeyedUnarchiver函数成为一个非NSData类型的对象。