Client SDKs

Installation

How to install the AudienceLab iOS SDK

The AudienceLab iOS SDK is distributed through the iOS release repository. You can integrate it with Swift Package Manager, CocoaPods, or a versioned XCFramework.

  1. In Xcode, go to File > Add Package Dependencies...
  2. Enter the repository URL:
https://github.com/Geeklab-Ltd/audiencelab_ios_sdk.git
  1. Choose the version rule that matches your release policy
  2. Add the AudienceLabSDK product to your app target

CocoaPods

Add the SDK directly from the release repository:

pod 'AudienceLabSDK', :git => 'https://github.com/Geeklab-Ltd/audiencelab_ios_sdk.git', :tag => 'v<version>'

Then run:

pod install

XCFramework

  1. Download the latest AudienceLabSDK.xcframework.zip from the releases page
  2. Unzip it
  3. Drag AudienceLabSDK.xcframework into your Xcode project
  4. Link it to your app target

Verify Installation

After installation, verify the SDK is accessible:

import AudienceLabSDK

print(AudienceLabSDK.getSDKVersion())