Skip to main content
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
 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.
Include the equivalent Swift package products for the MoEngage features being used by your app.
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.