Add the SDK Dependencies by using Swift Package Manager

You can add the Mobile App Messaging, In-App Messaging, and Push Messaging modules as dependencies in your app’s Podfile using Swift Package Manager (SPM).

  1. In your Xcode project, go to the Package Dependencies tab of your project’s settings.

    The Xcode project settings page with the Package Dependencies tab highlighted

  2. Add a package by clicking the plus sign (+).

  3. Search for Mobile App Messaging, In-App Messaging, and Push Messaging modules.

    The Swift Package Manager screen with the mam-core-sdk-ios package highlighted The Swift Package Manager screen with the iam-feature-sdk-ios package highlighted The Swift Package Manager screen with the push-feature-sdk-ios package highlighted

  4. Select the packages to include them in your app.

    A list of package products in Swift Package Manager for the mam-core-sdk-ios package A list of package products in Swift Package Manager for the iam-feature-sdk-ios package A list of package products in Swift Package Manager for the push-feature-sdk-ios package

After you add the dependencies, configure the SDK.