Installation
Important: VesperSDK is a private repo and requires basic auth to download and install, regardless of which dependency manager you choose. You will need to provide your credentials in ~/.netrc file to be able to authenticate during installation. About .netrc file
Add this inside your ~/.netrc file or create new file if you do not have one:
machine d1st2jzonb6gjl.cloudfront.net login es_5679*************************** passwordNote: Leave password empty, only use login(provided by request)
Important If you are using
Swift Package Manageron some machines Xcode does not pick up ~/.netrc file and package resolving fails, therefore a workaround solution need to be used by running this command in terminal which will save password into keychain and xcode should be able to resolve packages afterwards:security add-internet-password \ -a "es_5679***************************" \ -s "d1st2jzonb6gjl.cloudfront.net" \ -r "htps" \ -T /usr/bin/swift \ -T /usr/bin/xcodebuildImportant VesperSDK only builds on
arm64simulators therefore you experience build issues you need to update your project build settings to excludex86_64simulators if you are building with universal simulators or avoid using rozetta simulators on older xcodes
Swift Package Manager
Swift Package Manager is a tool for managing the distribution of Swift code. To integrate VesperSDK into your Xcode project using Swift Package Manager:
- In Xcode, select File → Add Package Dependencies…
- Enter the repository URL:
https://github.com/DiceTechnology/vesper-sdk-apple-spm - Choose the version rule: Up to Next Minor Version or Exact Version
Alternatively, you can add it directly to your Package.swift file:
dependencies: [
.package(url: "https://github.com/DiceTechnology/vesper-sdk-apple-spm", .upToNextMinor(from: "2.4.5"))
]
VesperSDK only builds on arm64 simulators therefore you need to update your project build settings to exclude x86_64 simulators if you are building with universal simulatators or avoid using rozetta simulators on older xcodes
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate VesperSDK into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'VesperSDK', '= 2.4.5'