How to Integrate the Device Data Collector XCFramework Package into an iOS Application (iOS SDK v5.x.x)

XCFramework is a type of binary library package that allows you to use third-party libraries in your iOS 11 or later applications. The Device Data Collector XCFramework package can simplify integrating the Device Data Collector into your app. XCFramework packages can be integrated directly into an app that does not use a package manager or uses the Swift Package Manager.

Adding the Device Data Collector XCFramework Package Directly

  1. Navigate to the Device Data Collector iOS SDK on GitHub, and then download the kount-ios-sdk project.

  2. In the XCode navigator, select File, then Add Files to your Project.

  3. In the kount-ios-sdk project, select KountSDK.xcframework.

  4. Go to Build Phases, then open Link Binary with Libraries.

  5. Select the plus sign (+), then add KountSDK.xcframework.

For Swift applications:

Import the SDK into the appropriate Swift file, such as AppDelegate or SceneDelegate.

import KountSDK

To validate the framework has been added to your project:

  1. In the project navigator, open your project settings.

  2. Select your target, and then open the General tab.

  3. Go to Frameworks > Libraries > Embedded Content settings.

  4. On the newly-added KountSDK.xcframework, select Embed and Sign.

  5. If you don’t see KountSDK.xcframework, add it manually.

    1. Select Plus (+) .

    2. Select the KountSDK.xcframework.

    3. Select Add.

Once you have added the KountDataCollector to your project, continue to the second step (runtime implementation).

Go to How to Invoke the Device Data Collector from a Swift App using iOS SDK v5.x.x for Swift invocation.

Was this article helpful?
0 out of 0 found this helpful