FacePlugin
Get in Touch
iOS

Face Liveness Detection SDK for iOS

A native iOS SDK, available in Objective-C and Swift, that runs passive and active face liveness detection entirely on-device – every frame is processed on the phone itself, and nothing is sent to the cloud.

Fully on-deviceObjective-C & SwiftNo per-call fees
Man completing a face liveness check on the iOS SDK demo
Live person
Liveness ✓
Requirements

What You Need to Run It on iOS

These are the exact minimum and recommended requirements published in the FaceLivenessDetection-iOS repository — check the repo directly for the latest version, since SDK requirements can change between releases.

iOS (min / recommended)iOS 15.0 / iOS 16 or newer
DevicePhysical iPhone – the engine ships no simulator slice
LanguageSwift (an Objective-C bridge, FaceLivenessBridge, is available for non-Swift hosts)
CameraCamera permission (NSCameraUsageDescription)
Quick Start

Install and Activate

Install the SDK, then activate it with a license key before calling any liveness function – every platform follows this same activate-then-initialize pattern.

  • Download the engine bundles from the Releases page and embed & sign them: facerecognitionsdk.framework, FacePluginSDK.xcframework, FacePlugin.xcframework and FaceDetect.xcframework.
  • Add FaceLivenessKit for the engine lifecycle, and copy the ActiveLiveness group if you want the guided screen. Add NSCameraUsageDescription to Info.plist.
  • Activate once at launch with your license key (it runs off the main thread on its own), then run passive liveness per frame or present ActiveLivenessViewController for the active challenge.
swift
// Activate once at launch (0 = success)
FaceEngine.shared.start(license: "FP1.…") { code in
    // engine ready when code == 0
}

// Passive liveness: per frame
FaceEngine.shared.detect(image, options: options)

// Active liveness: present ActiveLivenessViewController for a result
// Return codes: 0 success, 1 license invalid, 2 license expired,
// 3 not activated, 4 init failed
Platform notes

iOS Integration Notes

Details from the FaceLivenessDetection-iOS README.

Frameworks at the repo root

Place the framework bundles at the repository root, next to FaceLivenessSDK.xcodeproj. Open the project, choose the FaceLivenessDetectioniOS scheme and set your own Team.

Device only

The engine ships as ios-arm64 only, with no simulator slice, so the app runs on a physical iPhone with Xcode 15 or newer.

Prefer a USB cable

Wi-Fi debugging often hangs LLDB. Use a USB-connected iPhone, or run python3 run_ios from the repository.

Active liveness behavior

Losing the face for about a second restarts the attempt. The user must look straight at the camera before challenges begin (yaw, pitch and roll within the start-alignment tolerance); both thresholds are editable under Settings → Active liveness.

Passive and active modes

Mobile SDKs offer both passive and active liveness; the server products are passive only. Choose by risk level of the flow, not by platform.

See the Android liveness SDK for the same engine on Android, or the iOS face recognition SDK if you also need matching.

Licensing

How Licensing Works

Licenses are offline and bound to your app’s bundle identifier. Set your own bundle identifier and request a license for it rather than the demo’s.

FAQ

Frequently Asked Questions

Does the iOS SDK send biometric data to the cloud?

No. Every liveness check runs on your own server or directly on the device, depending on the platform – images never leave an environment you control.

How is the SDK licensed?

Licenses are offline and bound to your iOS bundle identifier. Contact FacePlugin with the bundle id you ship and we issue a key for it. There are no per-call or per-check fees once licensed.

Where can I see the full source and open an issue?

The iOS integration is maintained publicly on GitHub at github.com/Faceplugin-ltd, where you can browse the code, file issues, and track releases.

Related

Pairs Well With

Ready to Add Liveness Detection to Your iOS App?

Talk to our team to get a license key and a 15-day evaluation period started.