Add the SDK Dependencies by using Swift Package Manager

You can add the Mobile App Messaging SDK as a dependency 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 the package MarketingCloudSDK using the url https://github.com/salesforce-marketingcloud/MarketingCloudSDK-iOS.git

    The Swift Package Manager screen with the marketingcloudsdk-ios package highlighted

  4. Select the package to include it in your app.

    A list of package products in Swift Package Manager for the marketingcloudsdk-ios package

After you add the dependencies, configure the SDK.