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).

  1. Open your project Xcode.
  2. Go to Project Settings.
  3. On the Package Dependencies tab, click + to add a package.
  4. Enter the repository URL and add these packages:
  5. Review the package details and confirm to complete the installation.
  1. Open your project Xcode.
  2. Go to Project Settings.
  3. On the Package Dependencies tab, click + to add a package.
  4. Enter the repository URL and add these packages:
  5. Review the package details and confirm to complete the installation.
  1. Open your project Xcode.
  2. Go to Project Settings.
  3. On the Package Dependencies tab, click + to add a package.
  4. Enter the repository URL and add these packages:
  5. 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.

Note

After you install the dependencies, configure the SDK.