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
- Install Carthage
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
Run the following command to download and build the Olo Digital Wallets SDK
carthage update --use-xcframeworksFor each target, go to
General > Frameworks, Libraries, and Embedded Content- Drag and drop
OloDigitalWalletsSDK.xcframeworkframeworks from theCarthage/Buildfolder - Ensure all frameworks are set to
Embed & Sign
- Drag and drop
Important
Some sections of the Carthage documentation refer to running acopy-frameworks script for iOS projects. This does not apply to XCFrameworks and is not needed
SDK Updates
- Update the Olo Digital Wallets SDK version in your Cartfile
- Run the carthage update command from above