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.
-
Navigate to the Device Data Collector iOS SDK on GitHub, and then download the kount-ios-sdk project.
-
In the XCode navigator, select File, then Add Files to your Project.
-
In the
kount-ios-sdkproject, selectKountSDK.xcframework. -
Go to Build Phases, then open Link Binary with Libraries.
-
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:
-
In the project navigator, open your project settings.
-
Select your target, and then open the General tab.
-
Go to Frameworks > Libraries > Embedded Content settings.
-
On the newly-added
KountSDK.xcframework, select Embed and Sign. -
If you don’t see
KountSDK.xcframework, add it manually.-
Select Plus (+) .
-
Select the
KountSDK.xcframework. -
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.