iOS & tvOS SDK

Supported Platforms

Tech Stack Overview

SpecificationsDetails
Language VersionSwift 5.1
Desktop OSMac OS 10.14.4+ (Mojave)
Build DependenciesXcode CommandLine tools
Supported iOS VersioniOS 11+
Supported tvOS VersiontvOS 11+
SDK SizeSee iOS Sizes section below.
Compression ToolsNot compressed.
External Dependencies, 3rd Party Frameworks, and SDK Libraries/ComponentsN/A
EncryptionN/A
3rd Party FrameworksN/A

SDK Size

SDK VersionUncompressed File Size
OTPublishersHeadlessSDK-11.7BitcodeDisabled: 8.4 MB, BitcodeDisabled-Test: 12.3 MB, BitcodeEnabled: 17.4 MB, BitcodeEnabled-Test: 21.5 MB
OTPublishersHeadlessSDK-12.3BitcodeDisabled: 8.8 MB, BitcodeDisabled-Test: 12.8 MB, BitcodeEnabled: 18.7 MB, BitcodeEnabled-Test: 22.5 MB
OTPublishersHeadlessSDK-XCFramework17.6 MB

Framework Options

Note: For each framework, we offer support for both Bitcode Enabled/Disabled and x86_64 simulator architectures included and removed.

These options are available as separate frameworks downloads from the OT Admin, yet not available on Cocoapods. The only exception is XCFramework, which is offered via Cocoapods download.

To keep things simple, we're representing each of these separate framework support options as a single framework row on the table below. Please contact a OneTrust representative if you have any questions.

FrameworkBitcode SupportArchitecturesBuild SystemDownload OptionXCode Support
XCFrameworkBitcode Enabled ✅
Bitcode Disabled ✅
(x86_64, arm64) Simulators Included ✅
(arm64, armv7) Devices Only ✅
New Build System ✅
Legacy Build System ❌
Cocoapods ✅ SPM ✅
OT Download ✅
15.x ✅
14.x ✅

IMPORTANT: As of 202211.2.0, we have made the following changes:

  • We will be supporting two versions of XCFramework for both iOS and tvOS platforms.
    • XCFramework with Bitcode disabled (Built on Xcode 14): This will be uploaded to OneTrust portal, Cocoapods and Swift Package Manager.
    • XCFramework with Bitcode enabled (Built on Xcode 13): This will be uplaoded to OneTrust portal.
  • We are also deprecating support for fat framework on both iOS and tvOS platforms. For customers using fat frameworks, please switch to XCFramework.

Frequently Asked Questions (FAQ)

The following responses are supported solutions to frequently asked questions (FAQ) about the iOS & tvOS SDK. The OneTrust team continuously monitors these inquiries and will make additional FAQ available as they are identified.

  1. Does the OneTrust SDK support iOS 9/10 devices?

🚧

IMPORTANT

Effective with the 202402.1.0 release, the SDK will only support iOS 11+ and Xcode 14 - 15. If you're using 202402.1.0+, please ensure you update your Xcode version accordingly.

Yes, we support iOS 9/10 (32-bit) devices. In both the XCFramework and fat frameworks we provide, the armv7 device architecture is also being included. If you run into any issues supporting iOS 9/10 devices when downloading the SDK from Cocoapods, try using the SDK downloaded from the OneTrust portal prior to raising an issue with your OneTrust rep.

  1. Is the SDK encrypted or obfuscated in any way?
    TBD
  2. Does the SDK use third-party libraries?
    No, the SDK does not use third-party libraries.
  3. Does the SDK have external dependencies?
    No, the SDK does not have external dependencies.
  4. Does the SDK work with SDK aggregators such as mParticle?
    No, the SDK does not work with SDK aggregators.
  5. Does the SDK use open-source libraries?
    No, the SDK does not use open-source libraries.
  6. Does the SDK support Objective-C?
    OneTrust does not expose our public APIs to Objective-C by default. If your app is written in Objective-C, you can write an interface and access our Swift APIs from Objective-C.
    Example:
@objc extension OTPublishersHeadlessSDK {
    @objc(renameProfileFrom:to:completion:)
    func objc_renameProfile(from currentProfileID: String? = nil, 
    												to newProfileID: String, 
                            completion:@escaping(Bool) -> Void) {
        renameProfile(from: currentProfileID, to: newProfileID, completion: completion)
    }
}