---
title: Step 1. Adding core dependencies
description: PingOne iOS
component: orchsdks
page_id: orchsdks:davinci:use-cases/external-idp/ios/01_adding_core_dependencies
canonical_url: https://developer.pingidentity.com/orchsdks/davinci/use-cases/external-idp/ios/01_adding_core_dependencies.html
revdate: Tue, 25 Mar 2025 11:00:37 +0100
keywords: ["DaVinci", "Flows", "Tutorial", "Source Code", "Integration", "SDK", "iOS"]
section_ids:
  swift_package_manager: Swift Package Manager
  cocoapods: CocoaPods
---

# Step 1. Adding core dependencies

[icon: circle-check, set=far]PingOne [icon: apple, set=fab]iOS

These dependencies provide core support for social sign-on. These are the minimum required dependencies for using the redirect method to send users to the IdP for authentication.

|   |                                                                                                                                                          |
| - | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | If you want to use an IdP's native libraries for an embedded experience you can add additional dependencies and configuration in an optional step later. |

You can use Swift Package Manager (SPM) or CocoaPods to add dependencies to your iOS project.

## Swift Package Manager

1. With your project open in **Xcode**, select File > Add Package Dependencies.

2. In the search bar, enter the Orchestration SDK for iOS repository URL: `https://github.com/ForgeRock/ping-ios-sdk`.

3. Select the `ping-ios-sdk` package, and then click Add Package.

4. In the Choose Package Products dialog, ensure that the `PingExternalIdp` library is added to your target project, as well as the relevant orchestration library, either `PingDavinci` or `PingJourney`.

5. Click Add Package.

6. In your project, import the relevant dependencies:

   ```swift
   import PingDavinci
   import PingExternalIdp
   ```

## CocoaPods

1. If you do not already have CocoaPods, install the [latest version](https://guides.cocoapods.org/using/getting-started.html).

2. If you do not already have a Podfile, in a terminal window, run the following command to create a new [Podfile](https://guides.cocoapods.org/syntax/podfile.html):

   ```
   pod init
   ```

3. Add the relevant dependencies to your Podfile:

   ```
   pod 'PingDavinci'
   pod 'External-idp'
   ```

4. Run the following command to install pods:

   ```
   pod install
   ```
