Skip to content

Setup iPhone project

TheRealKerni edited this page May 12, 2011 · 11 revisions

Version 2.x

  • Download the latest version
  • PLCrashReporter framework is included in a new build to support iOS4 and armv7, source it is available here
  • Include BWQuincyManager.h, BWQuincyManager.m and Quincy.bundle into your project
  • Include CrashReporter.framework into your project
  • Add the “-all_load” flag to your projects build configurations “Other Linker Flags”
  • Add the Apple framework `SystemConfiguration.framework` to your project
  • In your appDelegate.m include
    #import "BWQuincyManager.h"
  • In your appDelegate applicationDidFinishLaunching function include (CRASH_REPORTER_URL points to your crash.php URL)
 [[BWQuincyManager sharedQuincyManager] setSubmissionURL:@"http://yourserver.com/crash_v200.php"];
 [[BWQuincyManager sharedQuincyManager] setDelegate:self];
  • Make sure that CFBundleVersion only contains alphanumeric characters and dots (i.e. “0.9.1”). If the version string contains other characters, submitting of crash reports will fail with error -20 / -21.
  • Done.
  • When testing the connection and a server side error appears after sending a crash log, the error code is printed in the console. Error code values are listed in BWQuincyManager.h

Version 1.x

  • Download Version 1.2
  • PLCrashReporter framework is included in a new build to support iOS4 and armv7, source it is available here
  • Include CrashReportSender.h and CrashReportSender.m into your project
  • Include CrashReporter.framework into your project
  • In your appDelegate.m include
    #import "CrashReportSender.h"
  • In your appDelegate applicationDidFinishLaunching function include (CRASH_REPORTER_URL points to your crash.php URL)
    [[CrashReportSender sharedCrashReportSender] sendCrashReportToURL:CRASH_REPORTER_URL 
                                                             delegate:self 
                                                     activateFeedback:YES];
  • Done.
  • When testing the connection and a server side error appears after sending a crash log, the error code is printed in the console. Error code values are listed in CrashReportSender.h
Clone this wiki locally