Skip to main content
Install the iOS dependencies for the MoEngage React Native plugins with either CocoaPods or Swift Package Manager (SPM). CocoaPods is the default for this release. MoEngage publishes new SDK versions to CocoaPods until December 2, 2026, and SPM support is experimental. To move an existing app to SPM, refer to Migrate From CocoaPods to SPM.
From Core 13.0.0, the plugins support only the React Native New Architecture, so they require React Native 0.68 or later with the New Architecture enabled. It is on by default from React Native 0.76. If your application disables it, enable it before you upgrade.
Due to the CocoaPods Specs Repo deprecation, you must explicitly define your dependency sources for your project to build successfully.Add the following lines at the very top of your Podfile, above any target blocks:
Ruby
  • MoEngage Source is required to successfully resolve and fetch MoEngage-specific SDK pods.
  • CocoaPods Source is required to ensure all your other standard third-party React Native dependencies continue to resolve correctly.
To install the iOS dependencies, follow these steps:
  1. Navigate to the ios directory.
  2. Run the following command:
    Bash
On React Native 0.68 to 0.75, the New Architecture is off by default. Run RCT_NEW_ARCH_ENABLED=1 bundle exec pod install --repo-update instead, so that pods install for the New Architecture.