Skip to content

iOS

This guide provides step-by-step instructions on installing the IDV SDK into an iOS application.

Prerequisites

Before integrating the SDK, ensure the following:

  • Minimum Deployment Target: iOS 15+
  • Camera permission enabled
  • NFC permission enabled
  • Internet permission enabled

The Regula IDV SDK installed via CocoaPods or Swift Package Manager.

The SDK includes multiple modules (Document Reader SDK, Face SDK). Include only the modules required for your workflow and follow their specific setup instructions.

Add Regula SDK to Your Project

CocoaPods

Warning

CocoaPods announced that they will become read-only in December 2026. After that, new pod versions can no longer be published there. For this reason, starting with Release 3.8, we publish new versions to our own repository. Previous versions remain available indefinitely in the CocoaPods registry, and apps that use those CocoaPod versions continue to function.

  1. Specify the location of Regula IDV specs repository in your Podfile:

    Podfile
    source 'https://github.com/regulaforensics/podspecs.git'
    
  2. Add IDVSDK dependency:

    • To install IDV SDK without pinning its version, add the following to your Podfile. Replace YourAppTarget with the name of your Xcode app target.

      Podfile
      target 'YourAppTarget' do
        use_frameworks!
      
        pod 'IDVSDK'
      end
      
    • Alternatively, to pin IDV SDK to a specific version, use the following line inside the same target block. Replace <version> with the version you want to install.

      Podfile
      pod 'IDVSDK', '<version>'
      
  3. In Terminal, run this command from your project directory:

    pod install
    

Optional modules

If your workflow requires optional modules, follow the installation guides:

Migration from CocoaPods

To switch IDV SDK to Swift Package Manager, remove the IDVSDK entry from your Podfile. Then follow the steps for your project:

  • If your project still uses CocoaPods for other dependencies, remove pod 'IDVSDK' from your Podfile and run pod install from your project directory.
  • If you’re removing CocoaPods entirely, run pod deintegrate from your project directory. Delete the .xcworkspace file if CocoaPods created it and your project no longer uses it.

Swift Package Manager (SPM)

Swift Package Collection

You can add all Regula products in one place:

swift package-collection add https://pods-master.regulaforensics.com/SPM/PodsCollection-signed.json

Or in Xcode:

1. Navigate to File -> Add Package Dependencies

2. Click + and select Add Package Collection

3. Enter the collection URL:

https://pods-master.regulaforensics.com/SPM/PodsCollection-signed.json

4. Click Load -> Add Collection.

5. Select package(s), version, and project and click Add Package. For new projects, we recommend using the latest version.

Once you're finished, Xcode will begin downloading and resolving dependencies.

Add Packages Separately

You can add each package individually instead of using the collection.

1. In Xcode, navigate to File -> Add Package Dependencies.

2. Enter the package URL:

https://github.com/regulaforensics/IDVSDK-Swift-Package

3. Select package(s), version, and project and click Add Package. For new projects, we recommend using the latest version.

4. If needed, install additional modules:

Once you're finished, Xcode will begin downloading and resolving dependencies.