Orchestration SDKs

Setting up the pingonemfa module on iOS

PingOne iOS

Before your app can pair devices or respond to authentication challenges, add the pingonemfa module to your app and initialize it with your PingOne geography.

Adding the module

To add the pingonemfa module to your iOS app:

  1. In Xcode, select your project in the project navigator, then select your app target and open the Package Dependencies tab.

  2. Click the + button, then choose Add Package Dependency…​.

  3. Enter the package repository URL and click Add Package:

  4. In the dependency rule field, select Up to Next Major Version and enter the version:

    Package version rule
    {latest_ios_mfa_vers}
  5. On the Choose Package Products screen, select the PingOneMFA product and add it to your app target.

Initializing the module

In your application startup code, import the module, call initialize(geo:), and pass in the geography of the region where your PingOne environment is provisioned:

Initializing the pingonemfa module
import PingOneMFA

Task {
    do {
        try await PingOneMFA.initialize(geo: .northAmerica)
    } catch {
        print("Initialization failed: \(error.localizedDescription)")
    }
}

The available geographies are:

Geography Value

North America

.northAmerica

Europe

.europe

Canada

.canada

Australia

.australia

Singapore

.singapore