Login
Welcome
Login

Import the Teads inApp SDK in your project

  1. Prerequisites
  2. Import the Teads inApp SDK

Prerequisites

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

  1. Add a package by selecting FileAdd Packages… in Xcode’s menu bar.
  2. Search for the Teads iOS SDK using the repo's URL:
https://github.com/teads/TeadsSDK-iOS
  1. Next, set the Dependency Rule to be Up to Next Major Version and keep 5.0.0 < 6.0.0.
  2. Choose the Teads product that you want to be installed in your app: TeadsSDK

Alternatively, add Teads to your Package.swift manifest

  1. Add it to the dependencies of your Package.swift:
dependencies: [
    .package(url: "https://github.com/teads/TeadsSDK-iOS", .upToNextMajor(from: "5.0.0"))
]
  1. 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"),
  ]
),

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.