For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration

Requirements

Before integrating, ensure your environment meets the minimum requirements for the CafFaceLivenessLite SDK:

Requirement
Version

Minimum iOS Target

15.0+

Xcode Version

26.0+

Swift Version

6.3+

CAF Mobile Token

A valid mobileToken

Permissions

Permission
Reason
Required

CAMERA

Capturing the selfie in live facial verification policies

Yes

Declare camera access with the NSCameraUsageDescription key in your app's Info.plist.

Installation

To integrate the CafFaceLivenessLite SDK into your iOS project, use Swift Package Manager (SPM) or CocoaPods. From 7.8.0, the binaries are also published to the CAF repository.

Swift Package Manager (SPM)

1

Open your project

Open your project in Xcode.

2

Add a package

Go to File > Add Packages....

3

Enter the repository URL

Enter the repository URL:

https://github.com/combateafraude/caf-ios-sdk

4

Select the package

Select the CafFaceLivenessLite package or your unified SDK if applicable.

5

Complete integration

Complete integration via the prompts.

CocoaPods

1

Ensure CocoaPods is installed

If CocoaPods is not installed on your system:

2

Navigate to your project directory.

3

Create or update your Podfile

4

Install pods

5

Open the workspace

Open the generated .xcworkspace.

CAF Repository (Binary Distribution)

From 7.8.0, CafFaceLivenessLite is also published to the CAF repository, the same one used for the Android SDKs. Each version has its own folder:

Replace {version} with the SDK version you want, for example 7.8.0. See Current Version.

CocoaPods with the CAF podspec

Point CocoaPods to the podspec published in the repository:

Then run pod install. The podspec downloads the xcframework from the CAF repository and declares its dependencies.

Release artifacts

Artifact
URL

CafFaceLivenessLite.xcframework.zip

https://repo.combateafraude.com/ios/release/CafFaceLivenessLite/{version}/CafFaceLivenessLite.xcframework.zip

CafFaceLivenessLite.xcframework.zip.sha256

https://repo.combateafraude.com/ios/release/CafFaceLivenessLite/{version}/CafFaceLivenessLite.xcframework.zip.sha256

CafFaceLivenessLite.podspec

https://repo.combateafraude.com/ios/release/CafFaceLivenessLite/{version}/CafFaceLivenessLite.podspec

Package.swift

https://repo.combateafraude.com/ios/release/CafFaceLivenessLite/{version}/Package.swift

SHA256 of CafFaceLivenessLite.xcframework.zip for v7.8.0:

To verify a downloaded file:

The output must match the .sha256 file published for that version.

The xcframework has external dependencies that are declared in the podspec and in Package.swift. Use one of them rather than adding the xcframework to your project by hand.

Next step

Configure and start the liveness flow: Starting Liveness Flow

Last updated