---
id: "sdk-guides/cordova-cocoapods-to-spm-migration"
title: "Migrate the Cordova SDK from CocoaPods to Swift Package Manager"
description: "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."
permalink: "/docs/sdk-guides/cordova-cocoapods-to-spm-migration"
slug: "cordova-cocoapods-to-spm-migration"
version: "current"
original_source: "docs/sdk-guides/cordova-cocoapods-to-spm-migration.mdx"
---

> **AI agents:** This is the Markdown version of a RevenueCat documentation page. For the complete documentation index, see [llms.txt](https://www.revenuecat.com/docs/llms.txt).

The RevenueCat Cordova SDK uses Swift Package Manager (SPM) on iOS starting with version 9. Follow the [Cordova SDK 9 migration guide on GitHub](https://github.com/RevenueCat/cordova-plugin-purchases/blob/main/migrations/v9-MIGRATION.md#ios) 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](https://www.revenuecat.com/docs/tools/ai-toolkit/skills), your agent can use its `revenuecat-migrate-to-spm` skill.

**Agent prompt**

```markdown
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.
```
