Setup
Last updated
Last updated
Manual Installation
Download the project zip file from the
Unzip the file
Copy the TruecallerSDK project files into your project ( TrueSDK directory, TrueSDKTests directory and TrueSDK.xcodeproj )
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.
Add the TruecallerSDK framework ( from Products output of TrueSDK.xcodeproj ) into the Embedded Binaries section of the General tab of your target.
Installation with Swift Package Manager (Recommended)
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
Search for truecaller SDK, use URL -
Choose the package and select the latest version
Click "Add Package" to confirm
Select the target
Click "Add Package" to confirm.
Use the package in your Xcode project by importing it into your swift files.
Installation with CocoaPods
is a dependency manager which automates and simplifies the process of using 3rd party libraries.
You can install it with the following command:
You can create your Podfile using the command ( in case you do not already have it ):
To integrate TruecallerSDK into your Xcode project using CocoaPods, specify it in your Podfile
:
Then, run the following command: