A brief introduction to the project:
- This example app demonstrates how to integrate IDLiveFaceCaptureIAD and IDLiveDocCaptureIAD capture libraries.
- It shows how to make a network request to the eKYC REST API.
- MainViewController handles the UI logic, while EnrollmentNetworkService manages network calls.
- Xcode 14 or later (iOS 15+ for async/await).
- Swift 5.5+.
-
IDLiveFaceCaptureIAD and IDLiveDocCaptureIAD Libraries
- Download them from our developer portal. Specifically, you’ll need:
idlive-face-capture-ios-VERSION_NUMBER.tar.gz– iOS IDLiveFaceCaptureIADiad-doc-capture-ios-VERSION_NUMBER.zip– iOS IDLiveDocCaptureIAD
- After extracting these
.tarfiles, place the resulting.xcframeworkfolders into theFrameworksfolder of this Xcode project.
- Download them from our developer portal. Specifically, you’ll need:
-
Licenses
- The same portal page also provides licenses for the detectors:
idlive-face-detector-eval-license-yyyy-mm-dd.zip– License for Face DetectorIDLiveFaceDetectionidlive-document-detector-eval-license-yyyy-mm-dd.zip– License for Document DetectorDocSdkMobile
- Each library requires a valid license key.
- Make sure to set the corresponding keys in AppDelegate.
- The same portal page also provides licenses for the detectors:
Note on Shared Libraries: When downloading both the Face and Document libraries, you may find some frameworks appear in both archives. The final list of libraries you need in your
Frameworksfolder is:
IDLiveFaceCaptureIAD.xcframeworkIDLiveDocCaptureIAD.xcframeworkCaptureCommon.xcframeworkIADCommon.xcframeworkIDLiveFaceDetection.xcframeworkDocSdkMobile.xcframeworkAfter copying these six
.xcframeworks into your project, you’ll have everything needed for both Face and Document capture.
- Sign in to ID R&D’s Customer Portal to obtain your API key.
- Replace the placeholder (
YOUR_API_KEY_HERE) in MainViewController.swift with your actual key.
If you just want to run this example as-is, do the following:
-
Locate the frameworks you received or downloaded:
IDLiveFaceCaptureIAD.xcframeworkIDLiveDocCaptureIAD.xcframeworkCaptureCommon.xcframeworkIADCommon.xcframeworkIDLiveFaceDetection.xcframeworkDocSdkMobile.xcframework
-
Copy/Paste all of these
.xcframeworkfiles into theFrameworks/folder in this Xcode project. -
Open the project in Xcode. You should see the frameworks listed under Project Navigator → eKYCExample Target → Frameworks.
-
Build & Run. Xcode should automatically link these frameworks if the project is set up accordingly.
Note: This approach is the fastest way to get the example app up and running. However, if you’re integrating these libraries into another app, follow Option B below.
If you need to integrate these frameworks into an existing or new Xcode project:
-
Drag & Drop the Frameworks
- In Xcode’s Project Navigator, right-click on your project or a “Frameworks” group.
- Select Add Files to YourProjectName….
- Choose the
.xcframeworkfiles:IDLiveFaceCaptureIAD.xcframeworkIDLiveDocCaptureIAD.xcframeworkCaptureCommon.xcframeworkIADCommon.xcframeworkIDLiveFaceDetection.xcframeworkDocSdkMobile.xcframework
- Make sure “Copy items if needed” is checked if the frameworks are outside your project folder.
- Click Add.
-
Link & Embed
- Go to Target → General tab.
- In “Frameworks, Libraries, and Embedded Content”, click “+” to add each framework if it isn’t already listed.
- Make sure “Embed & Sign” is selected.
-
Build & Run
- Clean and build your project (Cmd+Shift+K, then Cmd+B).
- If everything is configured correctly, Xcode will link and embed the frameworks in your app’s bundle.
-
Open the Project in Xcode
- iOS 15+, Xcode 14 or later
-
Connect a Physical iOS Device
- This example app uses the device camera for face/document capture.
- The simulator does not provide a camera, so the main capture flow will not work on a simulator.
-
Build & Run
- Press Cmd+R or go to Product > Run.
For issues or questions:
- Check our Developer Portal.
- Or contact us.
This example project is distributed under the MIT License.
See LICENSE.md for details.