呀~class-dump 失败了一次。。

今天calss-dump line聊天软件 直接ddress 0xa00000000101de77 in stringAtAddress:
问了搜索引擎,,貌似是代码里有swift?
何解?

https://github.com/BlueCocoa的修改版

或者用runtime dump

1 个赞

谢谢呐,,这就去试试~

刚刚测试了下。。
2016-08-05 13:01:02.123 class-dump[14510:113054] Warning: Cannot find offset for address 0xa00000000101de77 in stringAtAddress:
2016-08-05 13:01:02.124 class-dump[14510:113054] *** Assertion failure in -[CDObjectiveC2Processor loadMethodsAtAddress:extendedMethodTypesCursor:], /Users/ICore/Downloads/class-dump-master-2/Source/CDObjectiveC2Processor.m:399
2016-08-05 13:01:02.124 class-dump[14510:113054] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Invalid parameter not satisfying: [cursor offset] != 0’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff96b0a4f2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff89d69f7e objc_exception_throw + 48
2 CoreFoundation 0x00007fff96b0f1ca +[NSException raise:format:arguments:] + 106
3 Foundation 0x00007fff9143b856 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
4 class-dump 0x0000000107491896 -[CDObjectiveC2Processor loadMethodsAtAddress:extendedMethodTypesCursor:] + 502
5 class-dump 0x0000000107491692 -[CDObjectiveC2Processor loadMethodsAtAddress:] + 66
6 class-dump 0x000000010748fe47 -[CDObjectiveC2Processor loadClassAtAddress:] + 1895
7 class-dump 0x000000010748d239 -[CDObjectiveC2Processor loadClasses] + 297
8 class-dump 0x0000000107488c6b -[CDObjectiveCProcessor process] + 507
9 class-dump 0x0000000107452d0f -[CDClassDump processObjectiveCData] + 399
10 class-dump 0x000000010746de2e main + 5262
11 libdyld.dylib 0x00007fff9aec75ad start + 1
12 ??? 0x0000000000000005 0x0 + 5
)
libc++abi.dylib: terminating with uncaught exception of type NSException

是不是姿势不对呢~

那你就只能runtime dump了呗

链接打不开了,呜呜