How to Integrate the Device Data Collector CocoaPods Package into an iOS Application

CocoaPods is an application level dependency manager for Objective-C and Swift that provides a standard format for managing external libraries. You can use CocoaPods to integrate the Device Data Collector into your iOS app.

  1. In your project directory (where [App_Name].xcodeproj), open the terminal.

  2. If you have not initialized your project with pods already, run pod init; otherwise open Podfile using the open Podfile command.

  3. Add the following dependency to your Podfile. Replace x.x.x with the corresponding Device Data Collector SDK version number you are using.

        target '[App_Name]' do
        # Comment the next line if you don't want to use dynamic frameworks
        # use_frameworks!
          source ''
          # Pods for [App_Name]
          pod 'Kount', 'x.x.x'
  4. 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 pod install command, fix them before proceeding.

  5. In the project navigator, open the project configuration settings named APP_NAME.

  6. In the editor area, under targets, select APP_NAME, and then select the Build Settings tab.

  7. Under Swift Search Paths, go to Header Search Paths, and then add the following path:

  8. Go to Build Phases, and then open Link Binary with Libraries. Select the Plussign (+), and then add KountDataCollector.xcframework, if not already added.

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

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