Skip to main content

SDK Installation

From cordova-moengage-core 11.0.0, on cordova-ios 8 and later, the plugin installs through Swift Package Manager, and the CocoaPods steps on this page don’t apply. To move an existing application to Swift Package Manager, refer to Migrate From CocoaPods to SPM.

Installation using CocoaPods (Plugin Version 5.0.0 and above)

Starting from cordova-ios version 4.3.0 and cordova-cli version 6.4.0, CocoaPod support is provided to bundle any iOS framework. Therefore, we have updated our plugin too to support this from version 5.0.0. Cocoapods is a dependency manager for iOS projects and makes integration easier. If you don’t have cocoapods installed, you can do it by executing the following command in your terminal:
Here, after adding the plugin just go to the ios folder in platforms and run pod install command to integrate our MoEngagePluginBase:

Add script to remove Unwanted Architectures

Do this if not already done: Select App Target and go to Build Phase and add a Run Script step to your build steps, set it to use /bin/sh and enter the following script:
This script is for removing unsupported architectures while exporting the build OR submitting app to the app store.
I OS Installation1 1
For Plugin version 3.2.0 and below:Open your project in Xcode, select your project. Go to Build Settings -> Linker -> Other Linker Flags and add -ObjC flag