Integration¶
The iOS IDLiveFaceCaptureIAD solution comprises four iOS frameworks, each providing specialized functionality:
-
IDLiveFaceCaptureIAD.xcframework
This core framework provides high-level classes and methods to facilitate face capture and manage injection-attack detection (IAD). -
CaptureCommon.xcframework`
Contains the low-level camera capture functionality, handling session management, real-time previews, and user interactions for taking photos. -
`IADCommon.xcframework
Enables creating encrypted IAD bundles with IDCameraController, which you can send to your server for verification. -
IDLiveFaceDetection.xcframework
Offers face detection logic for auto-capture flows with quality compliance.
Adding the Frameworks to Your Xcode Project¶
- In your Xcode Project Settings (under General → Frameworks, Libraries, and Embedded Content), add the following:
IDLiveFaceCaptureIAD.xcframework
CaptureCommon.xcframework
IADCommon.xcframework
IDLiveFaceDetection.xcframework
- Ensure each framework is set to “Embed & Sign”.
Note: If you encounter build errors, verify that these frameworks are also correctly linked under Build Phases → Link Binary With Libraries.
Declare Camera Usage for Face Capture¶
To enable face capture functionality in your app, add the NSCameraUsageDescription
key to your Info.plist
file. This message is shown in the system prompt when the app requests access to the camera. Make sure to clearly explain the purpose, for example: “Camera access is required to capture your face for identity verification.”
Additional Examples¶
- Explore the CameraExample_IAD app (
idlive-face-capture-ios-X.X.X/CameraExample_IAD
) to see an implementation of these frameworks in a practical project.