What You’ll Set Up
Subscriptions
Paywall
Prerequisites
- Apple Developer account ($99/year)
- RevenueCat account (free tier available)
- Completed Supabase Setup
Part 1: App Store Connect Setup
Step 12: Create Bundle Identifier
com.yourcompany.yourapp).Step 13: Enable Capabilities
- ✅ Push Notifications
- ✅ In-App Purchase
- ✅ Sign in with Apple
- ✅ Associated Domains
- ✅ Any other capabilities you need
Step 14: Create New App
Step 15: Fill App Form
- Platform: iOS
- Name: Your App Name
- Primary Language: English (or your language)
- Bundle ID: Select the one you created
- SKU: A unique identifier (e.g.,
yourapp2024)
Step 16: Create Subscription Group
- Go to Subscriptions from the left menu
- Click Create to add a new subscription group
- Name it (e.g., “Premium Access”)
Step 17: Create Subscriptions
- Add Monthly subscription (e.g.,
monthly_subscription) - Add Annual subscription (e.g.,
annual_subscription)
Part 2: RevenueCat Dashboard Setup
Step 18: Create RevenueCat Project
- Click Create New Project
- Name your project
- Select iOS as platform
Step 19: Create Offerings
- Go to Products → Entitlements
- Create entitlement named
pro(or your choice) - Go to Offerings and create a new offering
- Add your subscription products to the offering
Step 20: SDK Already Installed
- Package dependencies are resolved in Xcode
- You have your test API key ready
Step 21: Update Config with API Key
Config/Secrets.xcconfig:Configuration.swift file. Verify it’s updated correctly.Part 3: Testing Configuration
Step 22: Disable Auth Bypass
- Select your target from top menu
- Edit Scheme → Arguments tab
- Set
AUTH_BYPASSargument to0
Step 23: StoreKit Configuration
- Select your target → Edit Scheme
- Go to Options tab
- StoreKit Configuration → Select your config file
Step 24: Verify Subscription Status
Step 25: App Store Connect API Key
RevenueCat Official Guide
Step 26: Map Product IDs Correctly
Step 27: Verify Offerings Load
Part 4: Sandbox Testing
Step 28: Create Sandbox Account
- Go to App Store Connect
- Users and Access → Sandbox
- Create a new sandbox tester account
Step 29: Sign In on Device
- Go to Settings → Developer
- Sign in with your Sandbox Account
- Try purchasing from your app
Step 30: Common Issue - Bundle Mismatch
Step 31: Verify on Dashboard
What You Get
After setup:- ✅ Working subscription purchases
- ✅ Beautiful paywall UI
- ✅ Subscription status tracking
- ✅ Restore purchases functionality
- ✅ Simulator testing with StoreKit Configuration
- ✅ Detailed logging for debugging
Product Setup Example
Monthly Subscription:- Product ID:
monthly_subscription - Type: Auto-Renewable Subscription
- Price: $9.99/month
- Product ID:
annual_subscription - Type: Auto-Renewable Subscription
- Price: $79.99/year
Troubleshooting
Products not loading
Products not loading
- Verify Product IDs match exactly in App Store Connect, RevenueCat, and StoreKit config
- Upload a build to App Store Connect first
- Check RevenueCat logs in console
- Ensure subscription status is “Ready to Submit”
Purchase fails in sandbox
Purchase fails in sandbox
- Sign out of real App Store account
- Sign in with sandbox account in Settings → Developer
- Restart the app
- Try again
Entitlement not granted
Entitlement not granted
- Verify entitlement name matches in code and RevenueCat dashboard
- Check that products are correctly mapped to entitlement
- Wait a few minutes and check RevenueCat dashboard
Bundle ID mismatch error
Bundle ID mismatch error
- Ensure bundle ID in Xcode matches App Store Connect
- Upload a test build to App Store Connect
- Re-sync products in RevenueCat
Related Guides
Payments Module
Feature Settings
Building Your App
Supabase Setup
Need Help?
- 📖 Check the troubleshooting section above
- 💬 Create an issue
- 🔍 Search RevenueCat docs
