Implement the SDK with Swift Package Manager
Implement version 8.0.0 or later of the Salesforce Engagement SDK by using Swift Package Manager (SPM).
- Open your project Xcode.
- Go to Project Settings.
- On the Package Dependencies tab, click + to add a package.
- Enter the repository URL and add these packages:
- Review the package details and confirm to complete the installation.
- Open your project Xcode.
- Go to Project Settings.
- On the Package Dependencies tab, click + to add a package.
- Enter the repository URL and add these packages:
- Review the package details and confirm to complete the installation.
- Open your project Xcode.
- Go to Project Settings.
- On the Package Dependencies tab, click + to add a package.
- Enter the repository URL and add these packages:
- Review the package details and confirm to complete the installation.
For SDK v10 and v11, the SFMCSDK module is included automatically as a dependency of these packages. For SDK v8, add the SFMCSDK package directly.
After you install the dependencies, configure the SDK.