Skip to main content
InformationCocoaPods is being deprecated. MoEngage recommends using Swift Package Manager for all new integrations. For more information, refer here.
Maven Central Cocoapods is a dependency manager for Objective C & Swift projects and makes integration easier.
  1. If you don’t have CocoaPods installed, you can do it by executing the following line in your terminal.
    sudo gem install cocoapods
    
  2. If you don’t have a Podfile, then create one by using pod init command. Post this add MoEngage-iOS-SDK pod to your pod file as shown below:
    pod 'MoEngage-iOS-SDK',
    
    Information
    • To ensure automatic minor version updates for MoEngage-iOS-SDK, configure your Podfile with pod 'MoEngage-iOS-SDK', '~> Major.Minor.Build'. For example: 'MoEngage-iOS-SDK', '~>10.03.2
    • For automatic integration of the latest MoEngage-iOS-SDK version, including major changes, use pod 'MoEngage-iOS-SDK'.
  3. Integrate MoEngage iOS SDK by executing the following in the terminal at your project’s root directory:
    pod repo update
    pod install
    
  4. Now, open your project workspace and check if MoEngage SDK is properly added.