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.
Swift Package Manager (Recommended)
- In Xcode, go to File > Add Package Dependencies...
- Enter the repository URL:
https://github.com/Geeklab-Ltd/audiencelab_ios_sdk.git- Choose the version rule that matches your release policy
- Add the
AudienceLabSDKproduct 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 installXCFramework
- Download the latest
AudienceLabSDK.xcframework.zipfrom the releases page - Unzip it
- Drag
AudienceLabSDK.xcframeworkinto your Xcode project - Link it to your app target
Verify Installation
After installation, verify the SDK is accessible:
import AudienceLabSDK
print(AudienceLabSDK.getSDKVersion())