Getting started

iOS SDK
BugBattle iOS SDK

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.

Swift
Objective-C
Swift
import BugBattle
Objective-C
#import <BugBattle/BugBattle.h>

πŸ’ͺ Usage

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

Swift
Objective-C
Swift
BugBattle.initWithToken("YOUR-API-KEY", andActivationMethod: SHAKE)
Objective-C
[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.

🀝 Need help?

We are here to help! [email protected]​