AppLovin MAX iOS SDK for Swift Package Manager.
The Swift Package Manager 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.
To integrate the AppLovin MAX SDK into your Xcode project using Swift Package Manager:
- Add it to the
dependencies
of yourPackage.swift
:
dependencies: [
.package(url: "https://github.com/AppLovin/AppLovin-MAX-Swift-Package.git", .upToNextMajor(from: "10.3.6"))
]
- Enable the
-ObjC
flag in Xcode: click on your project settings, go to Build Settings, search for Other Linker Flags and add-ObjC
.
Check out our integration docs for more info on getting started with the AppLovin MAX SDK.
Note, this Swift package only includes the main AppLovin MAX SDK. We currently do not support installing MAX mediation network adapters using Swift Package Manager.