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

Using Carthage

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

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

touch Cartfile

Add this line to your Cartfile

github "bugfender/BugfenderSDK-iOS" ~>1.10

Save the file and run

carthage update

Then import the framework into your project:

  • Import Carthage/Build/iOS/BugfenderSDK.framework to your Linked Frameworks and Libraries(or drag-n-drop the file to your project).
  • Make sure to select the option “Embed framework” (or list the framework in input.xcfilelist).
  • Make sure you have SystemConfiguration.framework, Security.framework, MobileCoreServices.framework, CoreGraphics.framework and libc++.tbd there as well.

Please note: the 1.8 version of the SDK requires Swift 5.1 or better. If you’re on an old version of Swift, you can use SDK version 1.7.0.

Carthage limitation: Carthage does not currently support xcframeworks, so it is not possible to build Catalyst applications with it.

In your AppDelegate add the following header:

@_exported import BugfenderSDK

Then in application:didFinishLaunchingWithOptions:

Bugfender.activateLogger("YOUR APP KEY")
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.