CrashOps lets you monitor your app's stability and vulnerability by giving you error and crash reports, supported by CrashOps servers.
You want to add pod 'CrashOps'
similar to the following to your Podfile:
target 'MyApp' do
pod 'CrashOps', '0.3.16'
end
Then run a pod install
in your terminal, or from CocoaPods app.
To recognize your app in CrashOps servers you need an application key, you can set it via code (programmatically) either via config file.
import CrashOps
// Swift
CrashOps.shared().appKey = "app's-key-received-from-CrashOps-support"
#import <CrashOps/CrashOps.h>
// Objective-C
[CrashOps shared].appKey = @"app's-key-received-from-CrashOps-support";
Use the CrashOpsConfig-info.plist file and place it in your project.
By default, CrashOps is enabled and it runs automatically as your app runs (plug n' play) but you always can control and enable / disable its behavior with two approaches: dynamically or statically.
Dynamically: Programmatically change the value (using code) of the variable isEnabled
as demonstrated here:
import CrashOps
// Swift
CrashOps.shared().isEnabled = false // The default value is 'true'
#import <CrashOps/CrashOps.h>
// Objective-C
[CrashOps shared].isEnabled = NO; // The default value is 'YES'
Statically: Add a CrashOpsConfig-info.plist file to your project and CrashOps will read it in every app launch (using this method can still be overridden by the dynamic approach).
CrashOps iOS library produces advanced error crash reports by using KZCrash which originally forked from the awesome KSCrash library.
Enjoy!