Installing PnP iOS SDK
Swift Package Manager
-
In Xcode, with your app project open, navigate to File > Add Package Dependencies.
-
When prompted, add the Web3Auth iOS SDK repository:
https://github.com/Web3Auth/web3auth-swift-sdk
From the
Dependency Rule
dropdown, selectExact Version
and enter10.0.1
as the version. -
When finished, Xcode will automatically begin resolving and downloading your dependencies in the background.
Cocoapods
To install the Web3Auth SDK using Cocoapods, follow the below steps:
- Open the Podfile, and add the Web3Auth pod:
pod 'Web3Auth', '~> 10.0.1'
- Once added, use
pod install
command to download the Web3Auth dependency.
Configure Redirection
To use Web3Auth for iOS you need to Whitelist your bundleId
in your Web3Auth project.
- Go to Web3Auth Developer Dashboard, and create or open an existing Web3Auth project.
- Whitelist
(bundleId)://auth
in the developer dashboard. This step is mandatory for the redirect to work.