有没有办法表示不是完整崩溃报告的堆栈跟踪?
我正在将[NSThread callStackSymbols]的字符串结果记录到我们的服务器.这不会提供完全格式化的崩溃报告,而只是非符号化的堆栈跟踪(下面的示例).
我试图象征这一点.我也尝试从同一个构建中替换实际崩溃报告的线程0堆栈跟踪.都没有奏效.我确实在app存档中有构建的dSYM.有没有办法在分发版本中不留下符号的情况下这样做?
0 domino free 0x00072891 domino free + 465041
1 domino free 0x000ea205 domino free + 954885
2 domino free 0x000ea033 domino free + 954419
3 domino free 0x0007fe55 domino free + 519765
4 domino free 0x0006f6d5 domino free + 452309
5 domino free 0x0006f7a3 domino free + 452515
6 domino free 0x0006fb9b domino free + 453531
7 Foundation 0x30558c29 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 16
8 Foundation 0x304b06d9 -[NSURLConnectionInternalConnection invokeForDelegate:] + 28
9 Foundation 0x304b06a3 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + …Run Code Online (Sandbox Code Playgroud) 我刚刚将我的xcode升级到4.5版本,我尝试了三种方式来表示崩溃日志,但它们都没有成功.
首先,我从设备上获取了崩溃日志,然后将其导入到Organizer的"设备日志"中,但是我的应用程序的确切功能无法显示,内存地址仍显示在结果中.
其次,我将'symbolAppcrash'文件从'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources'复制到'/ usr/local/bin'并将.DSYM文件,.app文件和.crash文件放入文件夹,运行命令:'symbolicatecrash Myapp.crash',结果仍显示内存地址.
最后,我尝试了http://xperienced.com.pl/blog/symbolicate-ios-crash-report的方法,但仍然没有运气.
能帮助我解决这个问题吗?
提前致谢!
目标:
我想象征着"输出" [NSThread callStackSymbols].
附注:
我知道如何使用崩溃日志来做到这一点.但是,我需要调查一些我想查看调用堆栈的问题.不幸的是,这些天框架的地址都是<redacted>.导致在正确的点崩溃(或结尾-看到我的问题的结束)是不是真的可以接受的,但如果我不能找到另一种解决方案,这将是要走的路.
我必须在设备上运行我的测试,所以我不能使用模拟器.
目前的做法:
当我这样称呼:
NSLog(@"call stack:\n%@", [NSThread callStackSymbols]);
Run Code Online (Sandbox Code Playgroud)
我得到这个输出:
2015-12-08 15:04:03.888 Conversion[76776:4410388] call stack:
(
0 Conversion 0x000694b5 -[ViewController viewDidLoad] + 128
1 UIKit 0x27259f55 <redacted> + 1028
...
9 UIKit 0x274f67a7 <redacted> + 134
10 FrontBoardServices 0x2b358ca5 <redacted> + 232
11 FrontBoardServices 0x2b358f91 <redacted> + 44
12 CoreFoundation 0x230e87c7 <redacted> + 14
...
16 CoreFoundation 0x23038ecd CFRunLoopRunInMode + 108
17 UIKit 0x272c7607 <redacted> + 526
18 UIKit 0x272c22dd UIApplicationMain + 144 …Run Code Online (Sandbox Code Playgroud)