SFBCrashReporter
是一个将应用程序崩溃日志提交到 HTTP 服务器的框架。
将 SFBCrashReporter
支持添加到您的应用程序非常简单
将崩溃日志提交的 URL 添加到应用程序的 Info.plist
中的 SFBCrashReporterCrashSubmissionURL
将以下代码添加到应用程序的代理
#import <SFBCrashReporter/SFBCrashReporter.h>
- (void) applicationDidFinishLaunching:(NSNotification *)aNotification
{
// Check for and send crash reports
[SFBCrashReporter checkForNewCrashes];
}
为您的 HTTP 服务器添加接收崩溃日志的支持也非常简单。 SFBCrashReporter
附带的 PHP 脚本会将提交的崩溃日志发送到指定的电子邮件账户。
安装 PHP!
修改handle_crash_report.php适当。