1. Home
  2. Docs
  3. Bugfender SDK for iOS
  4. Installing the SDK
  5. Using Cocoapods

Using Cocoapods

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

If you do not have a Podfile yet, create one with:

pod init

Add this line to your Podfile

pod 'BugfenderSDK', '~> 1.10'

Save the file and run

pod repo update
pod install

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

Please note: the 1.8.x versions of the SDK require Swift 5.1 or better, and 1.9.x versions require Swift 5.2 or better.

In your AppDelegate add the following header:

@_exported import BugfenderSDK

Then in application:didFinishLaunchingWithOptions:

Bugfender.activateLogger("YOUR APP KEY")
Bugfender.enableCrashReporting()
Bugfender.enableUIEventLogging()  // optional, log user interactions automatically

If you do not have a Bugfender account yet, Sign up to get your key from the Install SDK wizard.