Setup With CocoaPods

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

Important

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

First Time Setup

  1. Install CocoaPods
  2. For each target in your Podfile, add the Olo Digital Wallets SDK using the tag of the desired Olo Digital Wallets SDK release:

    pod 'OloDigitalWalletsSDK', :git => "https://git@github.com/ololabs/pay-digitalwallets-ios-sdk-releases.git", :tag => 'X.Y.Z'
    

    Important

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

  3. Run the following command to install the Olo Digital Wallets SDK pod

    pod install
    
  4. Open the workspace generated (or modified) by CocoaPods and begin using the Olo Digital Wallets SDK

SDK Updates

  1. Update the Olo Digital Wallets SDK version in your Podfile
  2. Run the following command to update the Olo Digital Wallets SDK pod

    pod update
    

    Note

    If you run into build issues, delete your Pods folder and Podfile.lock file. Then run pod update again