Setup With Swift Package Manager

The Olo Digital Wallets SDK supports Swift Package Manager (SPM). For more information about SPM and how it works, refer to the Swift Package Manager site. This guide will walk through adding the Olo Digital Wallets SDK to your app using Swift Package Manager.

Important

If you have manually added the Olo Digital Wallets SDK as a dependency to your project and are now switching to using Swift Package Manager, please manually remove the Olo Digital Wallets SDK dependency from your project and then follow the First Time Setup instructions

First Time Setup

  1. In Xcode, choose File --> Add Package Dependencies...

    Note

    Some versions of Xcode say Add Packages...

  2. In the search bar, enter the iOS SDK Repo url:
    https://github.com/ololabs/pay-digitalwallets-ios-sdk-releases

  3. Select the pay-digitalwallets-ios-sdk-releases package

  4. Select your dependency rules and click the Add Package button

SDK Updates

In Xcode, right-click on OloDigitalWalletsSDK under Package Dependencies and select Update Package