A native macOS code editor built with Swift, offering syntax highlighting, completion, git integration, debugging and extensions.
RevenueCat/purchases-ios
Swift SDK for in-app purchases and subscriptions on Apple platforms, wrapping StoreKit with a RevenueCat backend.
- Stars
- 3,083
- Forks
- 448
- Open issues
- 219
- Last commit
- 7 hours ago
What is it?
RevenueCat's purchases-ios is the client SDK for the RevenueCat subscription and purchase tracking system. It wraps StoreKit so apps can fetch products, make purchases, and check subscription status without writing the full StoreKit flow by hand. The SDK is written in Swift and can be used from Objective-C.
The SDK covers iOS, tvOS, macOS, watchOS, Mac Catalyst, and visionOS, with minimum targets of iOS 13, tvOS 13, macOS 10.15, watchOS 6.2, and visionOS 1.0. It can be installed through Swift Package Manager, CocoaPods, or Carthage, and requires Xcode 15 or later.
On the server side, RevenueCat handles receipt validation, subscription status across iOS, Android, and web, webhooks for purchase and renewal events, and analytics such as conversion, MRR, and churn. Products and entitlements are configured remotely from its dashboard.
Key features
- 01Fetches products and makes purchases through a StoreKit wrapper.
- 02Checks subscription and entitlement status across iOS, Android, and web.
- 03Validates receipts on the server side.
- 04Supports iOS, tvOS, macOS, watchOS, Mac Catalyst, and visionOS.
- 05Works with Swift and Objective-C and installs via SPM, CocoaPods, or Carthage.
Use cases
- Adding subscriptions or one-time purchases to an iOS or macOS app.
- Unlocking premium features based on a user's entitlement status.
- Sending purchase events from a subscription app to analytics or attribution tools.
Quick start
- 1
Install the SDK via Swift Package Manager (see the Quickstart Guide for details)
- 2
Optionally add the SPM mirror repository for faster integration
- 3
Try the iOS sample app MagicWeather
Things to know
- Requires Xcode 15.0 or later and works only on Apple platforms.
- Relies on a RevenueCat backend account to manage products and subscriptions.
Topics
FAQ
- What is purchases-ios?
- Swift SDK for in-app purchases and subscriptions on Apple platforms, wrapping StoreKit with a RevenueCat backend. RevenueCat's purchases-ios is the client SDK for the RevenueCat subscription and purchase tracking system. It wraps StoreKit so apps can fetch products, make purchases, and check subscription status without writing the full StoreKit flow by hand. The SDK is written in Swift and can be used from Objective-C.
- Is purchases-ios free to use? What license does it have?
- purchases-ios is open source under the MIT license. Check the license terms before using it in commercial products.
- Is purchases-ios still maintained?
- Actively maintained. The last commit to purchases-ios was on Oct 22, 2026.
- What can I use purchases-ios for?
- Adding subscriptions or one-time purchases to an iOS or macOS app. Unlocking premium features based on a user's entitlement status. Sending purchase events from a subscription app to analytics or attribution tools.
- How do I install purchases-ios?
- Install the SDK via Swift Package Manager (see the Quickstart Guide for details) Optionally add the SPM mirror repository for faster integration Try the iOS sample app MagicWeather
- Where can I get purchases-ios?
- The source code and installation instructions are on GitHub: https://github.com/RevenueCat/purchases-ios
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
GitHub Copilot integration for Xcode that adds code completion, chat, agent mode and code review for Swift and Objective-C projects.
A full-featured system emulator and virtual machine host for iOS, macOS and visionOS, built on QEMU to run Windows, Linux and other systems.
A Swift library for building Apple-platform apps with consistent state management, composable features, side-effect control, and strong testing support.
An iOS app launcher that runs IPA apps inside itself without installing them, with multiple containers per app.
A native iOS and tvOS video client for the Jellyfin media server, built in Swift and SwiftUI.