Note
- The current SDK supports iOS11 and above.
- For complete API reference of the SDK, refer to the docs in this link.
Integration through Swift Package Manager
Swift Package Manager (SPM) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies. To install the MoEngage-iOS-SDK through SPM, follow the below steps:- Navigate to File -> Add Package
- Enter the URL https://github.com/moengage/apple-sdk.git for SDK versions equal and above 9.23.0, or https://github.com/moengage/MoEngage-iOS-SDK.git for other SDK versions and select the branch as master or required version to install the package.
- Click Add Package.
- Now, MoEngage-iOS-SDK package is installed.
InformationCocoaPods is being deprecated. MoEngage recommends using Swift Package Manager for all new integrations. If your project requires CocoaPods, see the CocoaPods Integration Guide.