Skip to main content

Installation

CocoaPods

Using CocoaPods

  1. Add pod 'TeadsSDK', '~> 6.0' into your Podfile.
  2. Run pod install.
  3. Open workspace file and run the project.
platform :ios, '14.0'
use_frameworks!

target 'YourApp' do
pod 'TeadsSDK', '~> 6.0'
end

Swift Package Manager

Using Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. You can add the TeadsSDK SPM dependency by using the following URL:

https://github.com/teads/TeadsSDK-iOS.git

We recommend setting the dependency version constraint to .upToNextMajor(from: "6.0.0").

Adding via Xcode

  1. In Xcode, select File > Add Package Dependencies
  2. Enter the repository URL: https://github.com/teads/TeadsSDK-iOS.git
  3. Select version rule: Up to Next Major Version with 6.0.0

Adding via Package.swift

Adding TeadsSDK as a SPM package dependency is as easy as adding it to the dependencies value of your Package.swift:

dependencies: [
.package(url: "https://github.com/teads/TeadsSDK-iOS.git", .upToNextMajor(from: "6.0.0"))
]

Manual Installation

Download XCFramework

For manual installation, you can download the latest TeadsSDK.xcframework:

  1. Download the latest TeadsSDK.xcframework from the GitHub releases
  2. Drag and drop it into your Xcode project
  3. Ensure "Copy items if needed" is checked
  4. Add to your target's Frameworks, Libraries, and Embedded Content

Sample Application

The official Teads SDK sample application demonstrates best practices and integration examples.

GitHub Repository: TeadsSDK-iOS

Next Steps


info

Important: Be up to date with our latest releases: GitHub releases