Orchestration SDKs

Installing and importing the DaVinci module

PingOne iOS


To use the DaVinci module for iOS, use Swift Package Manager (SPM) or Cocoapods to add the dependencies to your project.

Add dependencies using SPM (Swift Package Manager)

You can install this by using SPM (Swift Package Manager) on the generated iOS project.

  1. In Xcode,in the Project Navigator, right-click your project, and then click Add Package Dependencies…​.

  2. In the Search or Enter Package URL field, enter the URL of the repo containing the DaVinci module for iOS, https://github.com/ForgeRock/ping-ios-sdk.git.

  3. In Add to Project, select the name of your project, and then click Add Package.

    Xcode shows a dialog containing the libraries available in the Orchestration SDK for iOS.

  4. Select the PingDavinci library, and in the Add to Target column select the name of your project.

  5. Repeat the previous step for any other Orchestration SDK libraries you want to add to your project.

  6. Click Add Package.

    Xcode displays the chosen libraries and any prerequisites they might have in the Package Dependencies pane of the Project Navigator:

    Package dependencies in the Xcode package navigator pane.
    Figure 1. Package dependencies in the Xcode package navigator pane.

Add dependencies using CocoaPods

  1. If you do not already have CocoaPods, install the latest version.

  2. If you do not already have a Podfile, in a terminal window, run the following command to create a new Podfile:

    pod init
  3. Add the following lines to your Podfile:

    pod 'PingDavinci'
  4. Run the following command to install pods:

    pod install