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.
-
Specify the location of Regula IDV specs repository in your
Podfile:Podfilesource 'https://github.com/regulaforensics/podspecs.git' -
Add
IDVSDKdependency:-
To install IDV SDK without pinning its version, add the following to your
Podfile. ReplaceYourAppTargetwith the name of your Xcode app target.Podfiletarget '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.Podfilepod 'IDVSDK', '<version>'
-
-
In Terminal, run this command from your project directory:
pod install
Optional modules
If your workflow requires optional modules, follow the installation guides:
- Document Reader SDK Documentation and IDV DocumentReader Integration Guide
- Face SDK Documentation and IDV FaceSDK Integration Guide
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 yourPodfileand runpod installfrom your project directory. - If you’re removing CocoaPods entirely, run
pod deintegratefrom your project directory. Delete the.xcworkspacefile 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.