我的崩溃日志:
Application received signal SIGSEGV
(null)
(
0 CoreFoundation 0x0000000182ab02f4 <redacted> + 160
1 libobjc.A.dylib 0x00000001942d40e4 objc_exception_throw + 60
2 CoreFoundation 0x0000000182ab0218 <redacted> + 0
3 yixia 0x429496857fc2 _ZN15CTXAppidConvert17IsConnectionAppIdEPKc + 149220
4 libsystem_platform.dylib 0x0000000194b0094c _sigtramp + 52
5 yixia 0x42949679ff82 yixia + 485740
6 yixia 0x4294967b8072 yixia + 584284
7 libdispatch.dylib 0x0000000194925994 <redacted> + 24
8 libdispatch.dylib 0x0000000194925954 <redacted> + 16
9 libdispatch.dylib 0x000000019492a20c _dispatch_main_queue_callback_4CF + 1608
10 CoreFoundation 0x0000000182a677f8 <redacted> + 12
11 CoreFoundation 0x0000000182a658a0 <redacted> + 1492
12 CoreFoundation 0x00000001829912d4 CFRunLoopRunSpecific + 396
13 GraphicsServices 0x000000018c1a76fc GSEventRunModal + 168
14 UIKit 0x0000000187556fac UIApplicationMain + 1488
15 yixia 0x4294967b8746 yixia + 586032
16 libdyld.dylib 0x0000000194952a08 <redacted> + 4
)
dSYM UUID: 220AF59E-3467-377E-B8AE-DA048BA93DDC
CPU Type: arm64
Slide Address: 0x429496729616x
Binary Image: yixia
Base Address: 0x00000001000a8000
我的dSYM
档案:dSYM。
我运行dwarfdump --arch=arm64 --lookup 0x429496857fc2 yixia.app.dSYM
并获得以下结果:
----------------------------------------------------------------------
File: yixia.app.dSYM/Contents/Resources/DWARF/yixia (arm64)
----------------------------------------------------------------------
Looking up address: 0x0000429496739102 in .debug_info... not found.
Looking up address: 0x0000429496739102 in .debug_frame... not found.
我确定此代码导致崩溃:crash code。
在调用+ (NSData *)generateGIFWithImage:(UIImage *)image andStickers:(NSArray *)stickers small:(BOOL)small withShareType:(NSUInteger)shareType
屏幕截图后,应用程序崩溃了:
然后我的iPhone失去了连接。
答案 0 :(得分:1)
替换
dwarfdump --arch=arm64 --lookup 0x429496857fc2 yixia.app.dSYM
使用
atos -arch arm64 -o yixia.app.dSYM/Contents/Resources/DWARF/yixia 0x429496857fc2
阅读this blog (written in Chinese)了解更多信息。
答案 1 :(得分:0)
替换
dwarfdump --arch=arm64 --lookup 0x429496857fc2 yixia.app.dSYM
到
dwarfdump --arch=arm64 --lookup 0x4294967AFFC2 yixia.app.dSYM
您需要将file-address
设置为--lookup
,而不是堆栈地址。
参见this page