Setup

Manual Installation

  1. Download the project zip file from the release section

  2. Unzip the file

  3. Copy the TruecallerSDK project files into your project ( TrueSDK directory, TrueSDKTests directory and TrueSDK.xcodeproj )

  4. Drag and drop TrueSDK.xcodeproj into your project ( i.e. add it as a subproject to your main project ). Embedding it this way will not require any additional script to be run.

  5. Add the TruecallerSDK framework ( from Products output of TrueSDK.xcodeproj ) into the Embedded Binaries section of the General tab of your target

NOTE: We recommend using the CocoaPods integration.

Installation with CocoaPods

CocoaPods is a dependency manager which automates and simplifies the process of using 3rd party libraries.

You can install it with the following command:

$ gem install cocoapods

You can create your Podfile using the command ( in case you do not already have it ):

$ pod init

To integrate TruecallerSDK into your Xcode project using CocoaPods, specify it in your Podfile :

platform :ios, '8.0'
use_frameworks!
target 'TargetName' do
pod 'TrueSDK'
end

Then, run the following command:

$ pod install