SuperAPI AI Directory

revenuecat-migrate-to-spm

Deployment & operations

View repository

Updated 11-05 01:41

About this skill

revenuecat-migrate-to-spm: move RevenueCat from CocoaPods or Carthage to Swift Package Manager

Use this skill when an app installs the RevenueCat SDK on iOS through CocoaPods or Carthage, and the user wants to move it to Swift Package Manager (SPM).

CocoaPods trunk becomes read-only on December 2, 2026. Existing RevenueCat pods stay installable, but apps must move to SPM to keep receiving RevenueCat's native SDK updates.

1. Confirm the migration applies

The app installs RevenueCat through CocoaPods or Carthage when either is true:

  • Its Podfile.lock lists RevenueCat or PurchasesHybridCommon. Look in ios/ for Flutter and React Native, ios/App/ for Capacitor, platforms/ios/ for Cordova, and the exported Xcode project for Unity.
  • Its Cartfile lists RevenueCat/purchases-ios.

If neither is true, RevenueCat doesn't come from CocoaPods or Carthage. Tell the user and stop.

2. Pick the guide

Each SDK has a step by step guide. Pick the one for the RevenueCat SDK the app uses:

The index at https://www.revenuecat.com/docs/sdk-guides/spm-migration-guides-index.md lists every guide.

3. Migrate

Fetch the guide's Markdown version and follow it in order.

  • Check the guide's prerequisites before changing anything. If the project doesn't meet them, stop and tell the user what to upgrade first.
  • Some guides start by raising the SDK to a minimum version. If that crosses a major version, apply the API changes from that version's migration guide in the SDK repo as part of the step.
  • Only RevenueCat has to leave CocoaPods. Leave unrelated pods alone unless the guide says otherwise.
  • Keep the migration in its own change, separate from feature work or other dependency updates.

4. Verify

Do not declare the migration done until:

  1. The guide's verification steps pass.
  2. Podfile.lock (if one remains) no longer lists RevenueCat or PurchasesHybridCommon, and Cartfile (if one remains) no longer lists RevenueCat/purchases-ios.
  3. The app builds.

Then ask the user to run their usual purchase flow in a sandbox build before shipping.