Skip to main content

SDK Setup

This guide walks you through integrating the Experience SDK into your application. Once complete, you'll be ready to create intercepts and collect user feedback.

Requirements​

Please verify that your application meets all requirements listed below.

RequirementVersion
iOS15.0+
Swift5.0+
Xcode14.0+
Package ManagerSPM 5.5+ or CocoaPods 1.9+

1. Install the SDK​

Our SDK can be installed using either SPM (Swift Package Manager) or CocoaPods.

info

Check the Release Notes for the latest available version.

SPM via Xcode​

  1. Open your project in Xcode.
  2. Navigate to File → Add Package Dependencies....
  3. Enter Package URL: https://github.com/qualtrics/qualtrics-experience-ios.
  4. Set Dependency Rule to "Up to Next Minor" from version 0.9.0.
  5. Click Add Package.
  6. Select QualtricsExperience product and add to your target.

SPM via Package.swift​

  1. In your Package.swift file, add SDK as a dependency:

    dependencies: [
    .package(
    url: "https://github.com/qualtrics/qualtrics-experience-ios",
    .upToNextMinor(from: "0.9.0")
    )
    ]
  2. Next, in the same file, add SDK as a dependency to your target:

    targets: [
    .target(
    name: "MyApp",
    dependencies: [
    .product(name: "QualtricsExperience", package: "QualtricsExperience")
    ]
    )
    ]

CocoaPods​

  1. Add the SDK package to your project's Podfile:

    target 'MyApp' do
    pod 'QualtricsExperience', '~> 0.9.0'
    ...
    end
  2. Then install the dependencies:

    pod install

2. Initialize the SDK​

Our SDK initializes automatically by default. For manual initialization, please refer to the Manual Initialization.

  1. Navigate to the Installation tab in your App Insights Project and copy your SDK Key.

    Installation tab, SDK Key

  2. Add a Qualtrics dictionary to your Info.plist file.

    Info.plist Qualtrics dictionary

  3. Within this dictionary, define a String property named SdkKey and assign it your actual SDK Key value.

    SdkKey property in Info.plist

  4. Launch the app and check the logs prefixed with [Q-EXP] to verify successful initialization.

3. Collect Screen Names​

warning

This step assumes Screen Name Auto Capture is enabled (enabled by default).

info

Screen Name Auto Capture works for both UIViewController-based and SwiftUI-based navigation. If you're using a different navigation approach, check out the Manual Screen Changes section.

When you launch the app, the SDK automatically captures visited screen names and sends them to App Insights Project. This makes them accessible in Sequencing Logic configuration (which we'll set up in the next step), allowing you to display intercepts based on user navigation.

Screen names in App Insights

To ensure all app screen names appear in the App Insights Project, visit every screen in your application at least once. Names of screens that haven't been visited won't be available in the dropdown menu.

4. Display Native App Feedback​

In the final step of SDK Setup, you'll create and display your first Native App Feedback intercept.

  1. Follow the First Intercept Setup guide to create your initial intercept. Once published, proceed to the next step.
  2. Relaunch your app and perform the screen changes specified in the intercept's sequencing logic.
  3. The Native App Feedback will display, confirming proper SDK functionality.
Native App Feedback on device Native App Feedback confirmation

Next Steps​

You're now ready to build more complex intercepts. Begin with the Manual Options to explore adding in custom targeting logic with our SDK, or visit Advanced Usage to discover UI customization and SDK configuration features (such as sequencing).