- Latest Version: iOS release notes
- Sample App: Teads iOS Sample App
Prerequisites
- Xcode: 15.3+
- Platform: iOS 12+
Import the Teads inApp SDK
Cocoapods
The simplest way to import the SDK into an iOS project is with CocoaPods.
We recommend: COCOAPODS: 1.10.1+
Open your project's Podfile and add this line to your app's target:
pod 'TeadsSDK', '~> 5.1'
Then from the console command line run:
$ pod install --repo-update
If you don't know how to use CocoaPods and Podfile, have a look at their official documentation.
Swift Package Manager
SPM is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
Installing from Xcode
- Add a package by selecting
File
→Add Packages…
in Xcode’s menu bar. - Search for the Teads iOS SDK using the repo's URL:
https://github.com/teads/TeadsSDK-iOS
- Next, set the Dependency Rule to be
Up to Next Major Version
and keep5.0.0 < 6.0.0
. - Choose the Teads product that you want to be installed in your app:
TeadsSDK
Alternatively, add Teads to your Package.swift manifest
- Add it to the
dependencies
of yourPackage.swift
:
dependencies: [
.package(url: "https://github.com/teads/TeadsSDK-iOS", .upToNextMajor(from: "5.0.0"))
]
- in any target that depends on a Teads product, add it to the
dependencies
array of that target:
.target(
name: "MyTargetName",
dependencies: [
.product(name: "TeadsSDK", package: "Teads"),
]
),