CocoaPods is an application level dependency manager for Objective-C and Swift that provides a standard format for managing external libraries.
- Open the terminal in the directory where
- If you have not initialized your project with pods already, run
- Open Podfile using the open Podfile command, through which a text file (Podfile) opens.
- Add the dependency listed below to edit your Podfile:
target '[App_Name]' do # Comment the next line if you don't want to use dynamic frameworks # use_frameworks! source 'https://github.com/Kount/kount-pod-spec.git' # Pods for [App_Name] pod 'Kount', '4.1.6' end
- If your project is already open in Xcode, close it and then run the pod install command to install the mentioned pods for your project pod install.
- If any errors occur from running the install command, fix them before proceeding.
- In the project navigator, open the project configuration settings named
APP_NAMEhas a blue icon to its left). In the editor area, under targets, select
APP_NAME, and then select the Build Settings tab.
- Under Swift Search Paths, go to Header Search Paths, and then add the following path:
- Go to Build Phases, and then open Link Binary with Libraries. Click the Plus sign (+), and then add
KountDataCollector.xcframework, if not already added.
Once you have added the KountDataCollector to you project, continue to the second step (runtime implementation).
- For Objective-C invocation, refer to How to Invoke the Device Data Collector from an Objective-C App using the iOS SDK 4.1.x.
- For Swift invocation, refer to How to Invoke the Device Data Collector from a Swift App using iOS SDK 4.1.x.