Skip to main content

Add the LRAtsSDK to Project

To get started with the iOS Mobile SDK, add the LRAtsSDK framework to your project. You can manually add the SDK or add and install the SDK with CocoaPods or Swift Package Manager (Swift 5.2 and above).

CocoaPods Integration

  1. Make sure you are using the latest version of CocoaPods.

  2. Add the following line to your Podfile:

    pod 'LRAtsSDK'
  3. Open Terminal and navigate to the directory where Podfile is located.

  4. Execute pod install to install the LRAtsSDK.

Swift Package Manager integration

  1. In Xcode, go to File > Add Packages.

  2. In Search or Enter Package URL, enter https://github.com/LiveRamp/ats-sdk-ios.

  3. Click Add Package.

Manual Integration

  1. Download the latest version of LRAtsSDK.xcframework here.

  2. Drag LRAtsSDK.xcframework from the LRAtsSDK folder to your Xcode project.

  3. Enable the Copy items if needed check box and confirm that your target is checked under Add to targets.

    iOS_SDK_Init_1.png
  4. In the Project Navigator, select your project and the target where LRAtsSDK.xcframework was imported.

  5. Click the General tab.

  6. Under Frameworks, Libraries, and Embedded Content, select 'Embed & Sign' for LRAtsSDK.xcframework.

    iOS_SDK_Init_2.png