Requirements
XCode 10.2+
Minimum target: iOS 9.0+
New version available
Our version 3.0 SDK is available for iOS with a more powerful way to organize and configure products remotely.
Installation
Purchases for iOS can be installed either via CocoaPods or Carthage.
Install via CocoaPods
Add the following to your Podfile:
pod 'Purchases', '~> 2.6'
And then run:
pod install
This will add Purchases.framework
to your workspace.
Install via Carthage
Add the following to your Cartfile:
github "revenuecat/purchases-ios" "2.6.0"
And then run:
carthage update --no-use-binaries
Make sure to include the
--no-use-binaries
to work around a bug in the most recent Carthage release.
Install via Swift Package Manager
You can use Swift Package Manager to add Purchases to your Xcode project. Select File Β» Swift Packages Β» Add Package Dependency...
and specify the repository URL of the Purchases
library: https://github.com/RevenueCat/purchases-ios.git. Set the version to Up to next major
and choose the target where you want to use it. The library should have been added to the Swift Package Dependencies section and you should be able to import it now.
Importing Purchases
You should now be able import Purchases
import Purchases
#import "Purchases.h"
Enable In-App Purchase for your project
Don't forget to enable the In-App Purchase capability for your project under
Project Target -> Capabilities -> In-App Purchase


Next Steps
- Now that you've installed the Purchases SDK in your iOS app, get started by configuring an instance of Purchases
Updated about a year ago