Setup With Carthage

The Olo Digital Wallets SDK supports the Carthage dependency management system. For more information about Carthage and how it works, refer to the Carthage Github site. This guide will walk through adding the Olo Digital Wallets SDK to your app using Carthage.

First Time Setup

  1. Install Carthage
  2. Add the Olo Digital Wallets SDK to your Cartfile using the tag of the desired release:

    github "ololabs/pay-digitalwallets-ios-sdk-releases" "X.Y.Z"
    

    Important

    Don’t forget to replace X.Y.Z with an actual version number (e.g. “4.0.0”). Visit our github releases page to see all available releases

  3. Run the following command to download and build the Olo Digital Wallets SDK

    carthage update --use-xcframeworks
    
  4. For each target, go to General > Frameworks, Libraries, and Embedded Content

    1. Drag and drop OloDigitalWalletsSDK.xcframework frameworks from the Carthage/Build folder
    2. Ensure all frameworks are set to Embed & Sign

Important

Some sections of the Carthage documentation refer to running a copy-frameworks script for iOS projects. This does not apply to XCFrameworks and is not needed

SDK Updates

  1. Update the Olo Digital Wallets SDK version in your Cartfile
  2. Run the carthage update command from above