Installing the Journey module on iOS
PingOne Advanced Identity Cloud PingAM iOS
To use the Journey module for iOS, use Swift Package Manager (SPM) or Cocoapods to add the dependencies to your project.
SPM (Swift Package Manager)
You can install packages by using SPM (Swift Package Manager) on the iOS project.
-
In Xcode, in the Project Navigator, right-click your project, and then click Add Package Dependencies….
-
In the Search or Enter Package URL field, enter the URL of the repo containing the DaVinci Client for iOS,
https://github.com/ForgeRock/ping-ios-sdk.git. -
In Add to Project, select the name of your project, and then click Add Package.
Xcode shows a dialog containing the libraries available for iOS.
-
Select the
PingJourneylibrary, and in the Add to Target column select the name of your project. -
Repeat the previous step for any other OIDC module libraries you want to add to your project.
-
Click Add Package.
Xcode displays the chosen libraries and any prerequisites they might have in the Package Dependencies pane of the Project Navigator.
CocoaPods
-
If you don’t already have CocoaPods, install the latest version.
-
If you don’t already have a Podfile, in a terminal window, run the following command to create a new Podfile:
pod init
-
Add the following lines to your Podfile:
pod 'PingJourney'
-
Run the following command to install pods:
pod install