The BugBattle SDK for iOS is the easiest way to integrate BugBattle into your apps!
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:
Open your Podfile and add:
Save the file and run:
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.
To initialize the BugBattle SDK, you need to add the following code to the end of the
BugBattle.initWithToken("YOUR-API-KEY", andActivationMethod: SHAKE)
[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
We are here to help! [email protected]