- Catch Crash
- Generate Crash file & Save it locally.
- Provide interface for uploading Crash file.
- Provide interface for handling the instant crash.
- Provide a plugin to grenerate related info about current env.
a simple and lightweight way to hanle the crash event
To integrate it into your project using CocoaPods,specify it in your Podfile
pod 'KYCrashHandler'
Then,run the following command:
pod install
.
├── Category
│ ├── NSDate+TimeTool.h
│ └── NSDate+TimeTool.m
├── CrashHandler
│ ├── KYExceptionHandler.h
│ ├── KYExceptionHandler.m
│ ├── KYSignalHandler.h
│ └── KYSignalHandler.m
├── CrashHandlerCore
│ ├── KYClassFinder.h
│ ├── UIApplication+FindRepairViewController.h
│ ├── UIApplication+FindRepairViewController.m
│ ├── UIApplication+KYCrashHandler.h
│ └── UIApplication+KYCrashHandler.m
├── Interfaces
│ ├── KYExtraInfoPlugin
│ │ ├── KYExtraInfoPlugin.h
│ │ └── KYExtraInfoPlugin.m
│ ├── RepairViewController
│ │ ├── KYCrashRepairViewController.h
│ │ └── KYCrashRepairViewController.m
│ └── Uploader
│ ├── KYCrashLogUploadOperation.h
│ ├── KYCrashUploader.h
│ └── KYCrashUploader.m
├── KYCrashBusinessHandler.h
├── KYCrashBusinessHandler.m
├── Lib
│ ├── Aspects.h
│ └── Aspects.m
└── Storeage
├── KYCrashLocalStorage.h
├── KYCrashLocalStorage.m
├── KYTimeRecorder.h
└── KYTimeRecorder.m
- 1.Inheritant form
KYCrashRepairViewController
,Then implementdidFinishRepairWithCompletion:
, you could do something to do with the crash event(try to reset your database or clean some dirty data,etc) - 2.Inheritant form
KYCrashUploader
to handle upload businiess.
To be more powerful && more resonable