Skip to content

Meniny/OhCrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OhCrap

An apple crash handler.

Requirements

  • iOS 8.0+
  • macOS 10.10+
  • watchOS 2.0+
  • tvOS 9.0+
  • Xcode 8 with Swift 3

Installation

CocoaPods

pod 'OhCrap'

Usage

import OhCrap
OhCrap.isEnable = true
OhCrap.delegate = self // <OhCrapDelegate>
/// <OhCrapDelegate>
func ohCrapDidCatch(_ exception: NSException, forType type: OhCrap.CrashType) {
  // ...
}

Objective-C Version

See MXCrashHandler-in-Objective-C.