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 Swift Package Manager.

Installation with Swift Package Manager (Recommended)

  1. Integrate your Swift package with Xcode by selecting “File” from the Xcode menu, then select “Add Packages” or use the keyboard shortcut Shift+Command+K

  2. Search for truecaller SDK, use URL - https://github.com/truecaller/ios-sdk

  3. Choose the package and select the latest version

  4. Click "Add Package" to confirm

  5. Select the target

  6. Click "Add Package" to confirm.

  7. Use the package in your Xcode project by importing it into your swift files.

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

Last updated