1. 导入KSCrash框架,进行配置
2.在AppDelegate启动处加入KSCrash代码
KSCrashInstallationStandard *installStandered=[KSCrashInstallationStandardsharedInstance];
installStandered.url=[NSURLURLWithString:
@"https://collector.bughd.com/kscrash?key=您的general key"
];[installStandered install];
[installStandered sendAllReportsWithCompletion:^(NSArray *filteredReports,BOOL completed, NSError *error) {
NSLog(@"%@",filteredReports);
}];
3.可以收集崩溃信息了,如下错误信息
KSCrash CoreFoundation 1d8f3b3d 1026877 |
KSCrash libobjc.A.dylib 1cb7b067 objc_exception_throw 28775 |
KSCrash CoreFoundation 1d8039a7 43431 |
KSCrash BluetoothCar a0627 _mh_execute_header 169511 |
5.将a0627与169511做差,并转成16进制数如0x77000
6.新建文件夹,讲BluetoothCar4.xcarchive文件夹中的Produces->Applications->内容,和dSYMS中得内容的保存在新文件夹中.
7.命令进入文件夹,
atos -arch armv7 -o BluetoothCar.app/BluetoothCar -l 0x77000 0xa0627,就可以看到崩溃信息了