---
title: Step 1. Adding core dependencies
description: 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.
component: sdks
version: latest
page_id: sdks:davinci:use-cases/social-login/ios/01_adding_core_dependencies
canonical_url: https://docs.pingidentity.com/sdks/latest/davinci/use-cases/social-login/ios/01_adding_core_dependencies.html
revdate: Tue, 25 Mar 2025 11:00:37 +0100
keywords: ["DaVinci", "Flows", "Tutorial", "Source Code", "Integration", "SDK", "iOS"]
---

# Step 1. Adding core dependencies

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

* CocoaPods

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

2. In the search bar, enter the Ping (ForgeRock) 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 `PingDavinci` and `PingExternalIdp` libraries are added to your target project.

5. Click Add Package.

6. In your project, import the library:

   ```swift
   import PingDavinci
   import PingExternalIdp
   ```

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 following lines to your Podfile:

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

4) Run the following command to install pods:

   ```
   pod install
   ```
