Requirements
- iOS 15.0 or higher
- Swift 5.9 or higher
- Xcode 14.0 or higher
Installation
Swift Package Manager
The Linkrunner SDK can be installed via Swift Package Manager (SPM), which is integrated directly into Xcode.- In Xcode, select File → Add Package Dependencies…
- Enter the following repository URL:
- Select the version you want to use (we recommend using the latest version)
- Click Add Package
- Choose the library type LinkrunnerStatic
Package.swift
file:
Importing in Swift
After installation, you can import the SDK in your Swift files:Required Permissions
App Tracking Transparency
If you plan to use IDFA (Identifier for Advertisers), you need to request permission from the user through App Tracking Transparency. Add the following to yourInfo.plist
file:
SKAdNetwork Configuration
To enable SKAdNetwork postback copies to be sent to Linkrunner, add the following keys to yourInfo.plist
file: