Skip to main content

Installing SFA Swift SDK

Swift Package Manager

  1. In Xcode, with your app project open, navigate to File > Add Packages.

  2. When prompted, add the single-factor-auth-swift iOS SDK repository:

    https://github.com/Web3Auth/single-factor-auth-swift

    From the Dependency Rule dropdown, select Exact Version and enter 9.0.2 as the version.

  3. 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:

  1. Open the Podfile, and add the SingleFactorAuth pod:
pod 'SingleFactorAuth', '~> 9.0.2'
  1. Once added, use pod install command to download the SingleFactorAuth dependency.