> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-sdk-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration through CocoaPods

<Info>
  **Information**

  CocoaPods is being deprecated. MoEngage recommends using Swift Package Manager for all new integrations. For more information, refer [here](/developer-guide/ios-sdk/sdk-integration/basic/sdk-integration).
</Info>

![Maven Central](https://img.shields.io/maven-central/v/com.moengage/android-bom)

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.

   <CodeGroup>
     ```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
     sudo gem install cocoapods
     ```
   </CodeGroup>

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:

   <CodeGroup>
     ```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
     pod 'MoEngage-iOS-SDK',
     ```
   </CodeGroup>

   <Info>
     **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'`.
   </Info>

3. Integrate MoEngage iOS SDK by executing the following in the terminal at your project's root directory:

   <CodeGroup>
     ```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
     pod repo update
     pod install
     ```
   </CodeGroup>

4. Now, open your project workspace and check if MoEngage SDK is properly added.
