> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Migration Of MoEngage SDK From Cocoapods To SPM

CocoaPods is being deprecated. MoEngage recommends using Swift Package Manager (SPM) for all new integrations.

## Step 1: Remove CocoaPods

To remove the existing CocoaPods integration, clean your configuration files first:

1. Open the `Podfile` in a text editor and remove the lines matching: `pod 'MoEngage-iOS-SDK'`.
2. Open your terminal, navigate to the project's root directory, and execute the following command to update the workspace:

```bash Bash wrap theme={null}
 pod install
```

## Step 2: Add Swift Package Manager

Now that the CocoaPods dependency is removed, you transition to the Xcode application to configure the new package.

To install the MoEngage-iOS-SDK through SPM, refer to the [SPM Integration Guide](https://www.moengage.com/docs/developer-guide/ios-sdk/sdk-integration/basic/sdk-integration#integration-through-swift-package-manager).

<Note>
  Include the equivalent Swift package products for the MoEngage features being used by your app.
</Note>

The MoEngage-iOS-SDK package is now installed.

## Post-migration Verification

Confirm the successful integration of the package:

1. Open the project workspace in Xcode.
2. Check the Project Navigator to ensure the MoEngage-iOS-SDK package appears correctly.
3. Build and run the project to confirm the application compiles without errors.
