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:InformationThe~>operator bumps only the last component you write, so the number of components you pin decides which updates you receive:- To take patch updates only, pin all three components:
pod 'MoEngage-iOS-SDK', '~> 11.02.0'. This resolves to>= 11.2.0, < 11.3.0. - To take minor and patch updates, pin two components:
pod 'MoEngage-iOS-SDK', '~> 11.02'. This resolves to>= 11.2, < 12.0. - To take the latest version including major changes, use
pod 'MoEngage-iOS-SDK'.
11.02.0parses to the segments[11, 2, 0], so~> 11.02.0and~> 11.2.0are the same requirement. - To take patch updates only, pin all three components:
-
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.