Adding the SDK via SPM

Medallia Experience Orchestration supports Swift Package Manager with Xcode. Cocoapods is not required for Swift Package Manager users.

Swift Package Manager support requires Xcode 12.5 or higher.

  1. Optional: Migrate from a Cocoapods-based project.

    To remove Cocoapods from your Xcode project run the following command:

    pod deintegrate

    The Cocoapods-generated .xcworkspace file can safely be deleted afterward.

    Note: If you're adding Medallia Experience Orchestration SDK to a project for the first time, this step can be ignored.
  2. In Xcode, navigate to File > Add Packages...

    Alternatively, select your project in the Project Editor, go to the Package Dependencies tab and click Add icon. Add.

  3. In the prompt that appears, select the Medallia Experience Orchestration GitHub repository.

    Enter the Medallia Experience Orchestration GitHub repository URL to the search field:

    https://github.com/medallia/mxo-ios-sdk
    Add package url.
  4. Select the version of the Medallia Experience Orchestration SDK you want to use.

    For new projects, we recommend using the newest version of the Medallia Experience Orchestration SDK, which you can find here.

    By default, Up to Next Major Version is selected. To integrate a specific version of the Medallia Experience Orchestration SDK, simply specify a version number you need.

    Note: You might need to select your target in this window if there are multiple targets in your workspace.
    Choose a package.
  5. Click Add Package and wait for Xcode to finish verifying and downloading the Swift package into your project.
    Fetch a package.
  6. Choose the Medallia Experience Orchestration products you want to include in your app.
    Select a target.
  7. Drag and drop the MedalliaMXOBundle.bundle to Copy Bundle Resources section in your targets.
    Add a bundle resource.

You have now integrated Medallia Experience Orchestration SDK for iOS.