Cocoapods is a dependency manager for Objective C & Swift projects and makes integration easier.
- If you don't have cocoapods installed, you can do it by executing the following line in your terminal.
sudo gem install cocoapods
- If you don't have a Podfile, then create one by using
pod initcommand. Post this add
MoEngage-iOS-SDKpod to your pod file as shown below:
pod 'MoEngage-iOS-SDK','~> 6.0.0'
- Integrate MoEngage iOS SDK by executing the following in the terminal at your project's root directory:
pod repo update pod install
- Now, open your project workspace and check if MoEngage SDK is properly added.
To integrate the SDK manually to your project follow this doc.
Updated 6 months ago
Awesome, you are all set to use MoEngage now. Next we will see how to initialize MoEngage SDK and changes that are to be made to your AppDelegate file.