Installing SFA Swift SDK
Swift Package Manager
-
In Xcode, with your app project open, navigate to File > Add Packages.
-
When prompted, add the single-factor-auth-swift iOS SDK repository:
https://github.com/Web3Auth/single-factor-auth-swift
From the
Dependency Rule
dropdown, selectExact Version
and enter9.0.2
as the version. -
When finished, Xcode will automatically begin resolving and downloading your dependencies in the background.
Cocoapods
To install the Web3Auth SingleFactorAuth SDK using Cocoapods, follow the below steps:
- Open the Podfile, and add the SingleFactorAuth pod:
pod 'SingleFactorAuth', '~> 9.0.2'
- Once added, use
pod install
command to download the SingleFactorAuth dependency.