An example iOS application that communicates with the tbdex-pfi-examplar.
There are two values that are generated by the tbdex-pfi-exemplar
application which must be set in the Config.swift
file in order to properly communicate with the PFI:
pfiDIDURI
- Set this to the "PFI DID FROM SERVER" value that is output to the console when running thenpm run server
command.claim
- Set this to the signed credential that is output to the console when running thenpm run example-issue-credential
command.
Open tbDEX-Example.xcodeproj
in Xcode. All package dependencies, including web5-swift
and tbdex-swift
should be downloaded automatically. If they are not, select File > Packages > Resolve Package Versions
from the menu.
Run npm run server
from the tbdex-pfi-examplar
repository. More information can be found in that repository if you have questions!
Click the play button on the upper left of the Xcode sidebar, or select Product > Run
from the menu.