While not recommended, you can integrate the Device Data Collector (DDC) as a static library in your XCode project.
-
Download the kount-ios-sdk from GitHub, and then extract the contents.
-
Place the
KountSDKUniversalLibraryfolder from the SDK inside the folder structure of your iOS project. -
From the
KountSDKUniversalLibrary, copylibKountSDK.aand add it to your project. -
Go to Project Target > Build Settings > Library Search Path and verify that the
KountSDKUniversalLibraryfolder was added. If not, add it manually.$(PROJECT_DIR)/KountSDKUniversalLibrary
-
Add
KountSDKUniversalLibraryto Swift Compiler Search Paths. -
Go to Project Target > Build Settings > Swift Compiler - Search Paths.
-
Add to the Import Path as:
$(PROJECT_DIR)/KountSDKUniversalLibrary
-
Go to Build Phases, then open Link Binary with Libraries.
-
Select the plus sign (+), then add
libKountSDK.a.
Once you have added the KountSDKUniversalLibrary to the 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.