Migrate the Cordova SDK from CocoaPods to Swift Package Manager
Move the RevenueCat Cordova SDK's iOS dependencies from CocoaPods to Swift Package Manager
The RevenueCat Cordova SDK uses Swift Package Manager (SPM) on iOS starting with version 9. Follow the Cordova SDK 9 migration guide on GitHub for the steps and requirements.
Migrate with a coding agent
Copy the prompt below into your coding agent. It asks the agent to check your setup and show you a plan before making changes. If you use the RevenueCat AI Toolkit, your agent can use its revenuecat-migrate-to-spm skill.
- Agent prompt
Help me move RevenueCat from CocoaPods to Swift Package Manager in a Cordova app.
Inspect the project first without changing files. Tell me how RevenueCat is installed today. If it already uses Swift Package Manager, tell me and stop.
Use the RevenueCat `revenuecat-migrate-to-spm` skill if available, and follow the platform guide: https://github.com/RevenueCat/cordova-plugin-purchases/blob/main/migrations/v9-MIGRATION.md#ios
Check the guide's prerequisites and flag any blockers. Check the current plugin version and explain any SDK 9 upgrade steps that are needed in addition to changing the iOS installation method.
Show me your plan, including how you'll verify the Apple-platform build and test the purchase flow. Wait for my approval before editing files. Afterward, explain what you verified and what I still need to test.
Was this page helpful?