How to integrate BugClipper SDK in your app (iOS)

SDK Integration

There are two ways to install BugClipper.

  1. Create a file in your Xcode project name “Podfile” and add the following line:
    pod ‘BugClipper’
  2. Run ‘pod install’ in your Xcode project directory. CocoaPods should download and install the SDK and all the required dependencies, and create a new Xcode workspace. Open up this workspace in Xcode.
    pod install

  1. Download the SDK zip file, Copy BugClipper.framework and Bugclipper.bundle files to your project directory and include it in your project.

    1. Go to Build Settings of the Target app and look for Other Linker Flag. Add “-ObjC -all_load” for both Debug and Release. Ignore it if already present.
    2. Make sure that you’ve linked your app with these frameworks

      • AVFoundation
      • CoreGraphics
      • CoreMedia
      • CoreVideo
      • MobileCoreServices
      • QuartzCore
      • SystemConfiguration
      • CoreTelephony
      • GLKit
      • MediaPlayer

From here its common for all

  1. Import BugClipper in your AppDelegate
    #import <BugClipper/BugClipper.h>
  2. In didFinishLaunchingWithOptions method, write the code below
    [BCManager setInvokerMode:InvokerDeveloperMode];
    [BCManager launchWithKey:”YOUR_API_KEY”];
  3. For adding BugClipper to your settings menu

    [BCManager setInvokerMode:InvokerProductionMode];
    [BCManager showBugClipperMenu];
    (Call this method when you want to show the BugClipper Menu. It will be shown as ActionSheet)

  4. For UNITY Games and Apps initiateHandler block will be called whenever the BugClipper library initiates bug handling, to pause the game here use

    Executes the finishHandler block when the BugClipper Library is done with bug reporting.
    In case of Unity games, it will be very useful to resume the game here.