revenuecat-migrate-to-spm
Move the RevenueCat SDK's iOS dependency from CocoaPods or Carthage to Swift Package Manager. Use when the user says migrate from CocoaPods to SPM, move off CocoaPods, CocoaPods trunk read-only, migrate from Carthage to SPM, move off Carthage, or migrate RevenueCat to Swift Package Manager, on native iOS, Flutter, React Native, Capacitor, Unity, or Cordova.
How do I install this agent skill?
npx skills add https://github.com/revenuecat/ai-toolkit --skill revenuecat-migrate-to-spmIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill facilitates the migration of the RevenueCat SDK from CocoaPods/Carthage to Swift Package Manager. It relies on fetching and following instructions from external Markdown guides at runtime, which introduces a potential surface for indirect prompt injection if the external documentation sources are compromised.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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. Identify the SDK and confirm it uses CocoaPods or Carthage
Find the RevenueCat SDK the app uses, then check whether it installs RevenueCat on iOS through CocoaPods or Carthage. If a hybrid SDK matches, use it, even if its ios/ folder also matches a native iOS entry.
- Flutter (
pubspec.yamldepends onpurchases_flutter): uses CocoaPods whenios/Podfile.locklistsPurchasesHybridCommon. AFlutterGeneratedPluginSwiftPackagereference in the Xcode project doesn't confirm SPM: it stays after SPM is turned off, including per machine withflutter config. If there is noPodfile.lock, runflutter build ios --config-onlyand check again: CocoaPods writesios/Podfile.lock, and SPM writesios/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage/Package.swift, which listspurchases_flutter. For macOS, useflutter build macos --config-onlyandmacos/. An SPM result only covers this machine, so before stopping, check CI scripts for--no-enable-swift-package-managerand confirm with the user that CI and other machines also use SPM. Guide: https://www.revenuecat.com/docs/sdk-guides/flutter-cocoapods-to-spm-migration.md - React Native (
package.jsondepends onreact-native-purchases): uses CocoaPods whenios/Podfileexists and there is noios/*.xcodeproj/.spm-injected.json. Expo apps use CocoaPods, even whenios/isn't committed, unless the app config enablesexperiments.swiftPackageManager. Guide: https://www.revenuecat.com/docs/sdk-guides/react-native-cocoapods-to-spm-migration.md. React Native's SPM integration is experimental. For Expo apps, recommend staying on CocoaPods: Expo's SPM support is still a preview, and common Expo libraries such asexpo-routerdon't support SPM yet. Explain this to the user, and migrate if they confirm. - Capacitor (
package.jsondepends on@revenuecat/purchases-capacitor): uses CocoaPods whenios/App/Podfileexists. Projects on SPM haveios/App/CapApp-SPM/Package.swiftinstead. Guide: https://www.revenuecat.com/docs/sdk-guides/capacitor-cocoapods-to-spm-migration.md - Unity (
Packages/manifest.jsonlistscom.revenuecat.purchases-unity, orAssets/RevenueCat/exists from the.unitypackage): uses CocoaPods when the generated Xcode project'sPodfilelistsPurchasesHybridCommon, and SPM when itsproject.pbxprojreferencespurchases-hybrid-commoninstead. Resolver settings don't confirm SPM: an existing build folder keeps its pods until it's rebuilt. The generated project is build output and usually not committed, so if it isn't available, ask the user. Guide: https://www.revenuecat.com/docs/sdk-guides/unity-cocoapods-to-spm-migration.md - Cordova (
package.jsondepends oncordova-plugin-purchases): uses CocoaPods on 8.x or earlier. Version 9 uses SPM. Check the version inpackage.jsonorconfig.xml, sinceplatforms/is usually not committed. Guide: https://github.com/RevenueCat/cordova-plugin-purchases/blob/main/migrations/v9-MIGRATION.md#ios - Native iOS with CocoaPods:
PodfileorPodfile.locklistsRevenueCat. Guide: https://www.revenuecat.com/docs/sdk-guides/ios-native-cocoapods-to-spm-migration.md - Native iOS with Carthage:
CartfileorCartfile.resolvedlistsRevenueCat/purchases-ios. Guide: https://www.revenuecat.com/docs/sdk-guides/ios-native-carthage-to-spm-migration.md
The index at https://www.revenuecat.com/docs/sdk-guides/spm-migration-guides-index.md lists every guide.
If a committed Podfile.lock lists RevenueCat, the app uses CocoaPods, whatever the signals above suggest. If RevenueCat already comes from SPM, tell the user and stop. If the project doesn't show which one it uses, ask the user.
2. 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.
3. Verify
Do not declare the migration done until:
- The guide's verification steps pass.
Podfile.lockandPodfile(if they remain) no longer listRevenueCatorPurchasesHybridCommon, andCartfileandCartfile.resolved(if they remain) no longer listRevenueCat/purchases-ios.- The app builds.
Then ask the user to run their usual purchase flow in a sandbox build before shipping.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/revenuecat/ai-toolkit/revenuecat-migrate-to-spm">View revenuecat-migrate-to-spm on skillZs</a>