2023-01-19 11:03:40.541 restore-symbol[14981:549366] *** Assertion failure in -[CDObjectiveC2Processor loadClassAtAddress:], CDObjectiveC2Processor.m:258
2023-01-19 11:03:40.543 restore-symbol[14981:549366] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: moduleName.length == length'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff8061dde9b __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff805f3fe48 objc_exception_throw + 48
2 Foundation 0x00007ff806fc1d03 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 267
3 restore-symbol 0x00000001049fbedc -[CDObjectiveC2Processor loadClassAtAddress:] + 2709
4 restore-symbol 0x00000001049f9c38 -[CDObjectiveC2Processor loadClasses] + 224
5 restore-symbol 0x00000001049f70dd -[CDObjectiveCProcessor process] + 381
6 restore-symbol 0x00000001049e5a06 -[CDClassDump processObjectiveCData] + 300
7 restore-symbol 0x00000001049db497 restore_symbol + 823
8 restore-symbol 0x00000001049e2f32 main + 514
9 dyld 0x0000000204d2552e start + 462
10 dyld 0x0000000204d20000 dyld + 0
)
libc++abi: terminating with uncaught exception of type NSException
原因:restore-symbol的子模块class-dump的版本太低
解决:
在restor-symbol 目录下
rm -rf class-dump
git clone https://github.com/nygard/class-dump.git
注释掉 makefile 中的 git submodule 命令
CDLCBuildVersion.m下面注释 18行//case PLATFORM_IOSMAC: return @"iOS Mac";
重新make即可
网友评论