iOS & tvOS SDK
Supported Platforms
Tech Stack Overview
Specifications | Details |
---|---|
Language Version | Swift 5.1 |
Desktop OS | Mac OS 10.14.4+ (Mojave) |
Build Dependencies | Xcode CommandLine tools |
Supported iOS Version | iOS 11+ |
Supported tvOS Version | tvOS 11+ |
SDK Size | See iOS Sizes section below. |
Compression Tools | Not compressed. |
External Dependencies, 3rd Party Frameworks, and SDK Libraries/Components | N/A |
Encryption | N/A |
3rd Party Frameworks | N/A |
SDK Size
SDK Version | Uncompressed File Size |
OTPublishersHeadlessSDK-11.7 | BitcodeDisabled: 8.4 MB, BitcodeDisabled-Test: 12.3 MB, BitcodeEnabled: 17.4 MB, BitcodeEnabled-Test: 21.5 MB |
OTPublishersHeadlessSDK-12.3 | BitcodeDisabled: 8.8 MB, BitcodeDisabled-Test: 12.8 MB, BitcodeEnabled: 18.7 MB, BitcodeEnabled-Test: 22.5 MB |
OTPublishersHeadlessSDK-XCFramework | 17.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.
Framework | Bitcode Support | Architectures | Build System | Download Option | XCode Support |
---|---|---|---|---|---|
XCFramework | Bitcode 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.
- 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.
- Is the SDK encrypted or obfuscated in any way?
TBD - Does the SDK use third-party libraries?
No, the SDK does not use third-party libraries. - Does the SDK have external dependencies?
No, the SDK does not have external dependencies. - Does the SDK work with SDK aggregators such as mParticle?
No, the SDK does not work with SDK aggregators. - Does the SDK use open-source libraries?
No, the SDK does not use open-source libraries. - 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)
}
}
Updated 11 months ago