CocoaPods is being deprecated. MoEngage recommends using Swift Package Manager (SPM) for all new integrations.Documentation Index
Fetch the complete documentation index at: https://moengage-ios-release-notes-breaking-changes-doc-1961.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Step 1: Remove CocoaPods
To remove the existing CocoaPods integration, clean your configuration files first:- Open the
Podfilein a text editor and remove the lines matching:pod 'MoEngage-iOS-SDK'. - Open your terminal, navigate to the project’s root directory, and execute the following command to update the workspace:
Bash
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.
Post-migration Verification
Confirm the successful integration of the package:- Open the project workspace in Xcode.
- Check the Project Navigator to ensure the MoEngage-iOS-SDK package appears correctly.
- Build and run the project to confirm the application compiles without errors.