InformationCocoaPods is being deprecated. MoEngage recommends using Swift Package Manager for all new integrations. For more information, refer here.
-
If you don’t have CocoaPods installed, you can do it by executing the following line in your terminal.
-
If you don’t have a Podfile, then create one by using
pod initcommand. Post this addMoEngage-iOS-SDKpod to your pod file as shown below: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'.
- To ensure automatic minor version updates for MoEngage-iOS-SDK, configure your Podfile with
-
Integrate MoEngage iOS SDK by executing the following in the terminal at your project’s root directory:
- Now, open your project workspace and check if MoEngage SDK is properly added.