iOS SDK
iOS SDK - Installation
Install the Pricist iOS SDK in your project.
The Pricist SDK for iOS, macOS, tvOS, and watchOS. It sends subscription, paywall, and revenue events to Pricist with a stable identity, queued and retried offline. The event taxonomy mirrors the Meta/TikTok standard events, so attribution can be layered on later without changing your call sites.
Requirements
- iOS 14.0+ / macOS 12.0+ / tvOS 14.0+ / watchOS 7.0+
- Swift 5.9+
- Xcode 15+
Swift Package Manager (Recommended)
In Xcode, go to File → Add Package Dependencies… and enter:
https://github.com/Pricist/pricist-ios
Or add it to your Package.swift:
dependencies: [
.package(url: "https://github.com/Pricist/pricist-ios", from: "0.1.0")
]Then add Pricist to your target dependencies:
.target(
name: "MyApp",
dependencies: ["Pricist"]
)The SDK product and module are both named Pricist.
Verify the install
Import the module and initialize the SDK — see Configuration for the full setup:
import Pricist
Pricist.shared.initialize(with: PricistConfiguration(sdkKey: "pk_live_…"))On the first launch the SDK automatically fires an Install event, and an ActivateApp event on every cold start, so you'll see activity in your dashboard immediately.