Overview
The Encore SDK is distributed as a private Swift Package. You’ll receive a GitHub Personal Access Token from the Encore Dashboard to authenticate and install the package.Prerequisites: Obtain Access Credentials
Before installing the SDK, you need to obtain your access credentials from the Encore Dashboard.Don’t have credentials? Visit dashboard.encorekit.com to create an account, add your app, and receive your SDK access credentials automatically.
- Access Token: A GitHub Personal Access Token (starts with
ghp_...) provided through the Dashboard - Authenticated Repository URL:
Install via Swift Package Manager
Swift Package Manager is Apple’s official dependency manager integrated into Xcode.Step 1: Add Package in Xcode
- In Xcode, select File ▸ Add Packages Dependencies…
- Paste your authenticated repository URL (with your token embedded):
- Press Return or click the search icon. The package should resolve automatically.
Step 2: Configure Dependency
With the ios-sdk package selected:- Set Dependency Rule to Up to Next Major Version
- Set the lower bound to 1.0.0
- Make sure your project is selected in Add to Project
- Click Add Package
Step 3: Add to Target
After the package resolves:- Ensure Add to Target is set to your app’s name
- Click Add Package
Step 4: Verify Installation
You should now be able to import the SDK:Next Steps
Now that the SDK is installed, continue with the integration:- Configure the SDK - Set up your API key and initialize Encore
- Identify Users - Learn how to identify users for offer tracking
- Present Offers - Start showing offers in your app
- Track Entitlements - Check subscription status in real-time
Advanced Topics
Updating to a New Release
Updating to a New Release
To update to the latest version:
- In Xcode’s left sidebar, expand Package Dependencies
- Find and right-click the Encore package
- Select Update Package