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).
-
In your Xcode project, go to the Package Dependencies tab of your project’s settings.

-
Add a package by clicking the plus sign (+).
-
Search for the package
MarketingCloudSDKusing the urlhttps://github.com/salesforce-marketingcloud/MarketingCloudSDK-iOS.git
-
Select the package to include it in your app.

After you add the dependencies, configure the SDK.