Quick Start - iOS

Get UXCam running in your iOS app in 5 minutes

iOS Quick Start

Get session recording working in your iOS app in under 5 minutes.

Prerequisites

  • Xcode
  • iOS deployment target 12.0+
  • A UXCam account with an app key

Step 1: Add the Dependency

Swift Package Manager (recommended)

In Xcode, go to File > Add Package Dependencies..., enter https://github.com/uxcam/uxcam-ios, choose Up to Next Major Version from 3.12.0, and add the UXCam product to your app target.

CocoaPods (legacy, up to 3.12.0)

Warning

3.12.0 is the last CocoaPods release. CocoaPods stops accepting new releases on December 2, 2026, so new versions of the iOS SDK will be published only through Swift Package Manager. CocoaPods keeps installing 3.12.0 and earlier versions, but you will not get later fixes or features through CocoaPods. Move to Swift Package Manager.

Add to your Podfile:

pod 'UXCam', '~> 3.12.0'

Then run:

pod install

Step 2: Initialize UXCam

In your AppDelegate:

import UXCam

func application(_ application: UIApplication,
                 didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

    let config = UXCamConfiguration(appKey: "YOUR_APP_KEY")
    UXCam.optIntoVideoRecordings()
    UXCam.start(with: config)

    return true
}
Objective-C version
#import <UXCam/UXCam.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    UXCamConfiguration *config = [[UXCamConfiguration alloc] initWithAppKey:@"YOUR_APP_KEY"];
    [UXCam optIntoVideoRecordings];
    [UXCam startWithConfiguration:config];

    return YES;
}

Note

SwiftUI? Check our dedicated SwiftUI integration guide for SwiftUI-specific setup.


Step 3: Verify It Works

  1. Run your app on a simulator or device
  2. Navigate through a few screens
  3. Send the app to background
  4. Check your UXCam Dashboard - your session should appear within 30 seconds

Tip

Set config.enableIntegrationLogging = true to see UXCam debug logs in Xcode console.


Next Steps

You're recording sessions! Now customize your integration:


What's Next? ...

Did this page help you?