BugBattle iOS SDK

BugBattle iOS SDK Intro

The BugBattle SDK for iOS is the easiest way to integrate BugBattle into your apps!

Installation with CocoaPods

Open a terminal window and navigate to the location of the Xcode project for your app.

Create a Podfile if you don't have one:

pod init

Open your Podfile and add:

pod 'BugBattle'

Save the file and run:

pod install

This creates an .xcworkspace file for your app. Use this file for all future development on your application.

The BugBattle SDK is almost installed successfully. Let's carry on with the initialization ๐ŸŽ‰

Open your XCode project (.xcworkspace) and open your App Delegate (AppDelegate.swift)

Import the BugBattle SDK

Import the BugBattle SDK by adding the following import below your other imports.

import BugBattle

Initialize the SDK

To initialize the BugBattle SDK, you need to add the following code to the end of the applicationDidFinishLaunchingWithOptions delegate.

BugBattle.initWithToken("YOUR-API-KEY", andActivationMethod: SHAKE)

Your API key can be found in the project settings within BugBattle. Possible values for the activation method are NONE, SHAKE and THREE_FINGER_DOUBLE_TAB.