FacePlugin
Get in Touch
iOS

Face Recognition SDK for iOS

An on-device iOS face recognition SDK built on a NIST FRTE-evaluated engine, with passive liveness detection internally evaluated against ISO/IEC 30107-3 Level 2-type attacks (printed photos, screen replays, and 3D masks) and built to detect deepfakes as well.

NIST FRTE-evaluated engineISO/IEC 30107-3-evaluated livenessFully on-device
Woman scanning her face with a phone for 1:1 verification
Identity Verified
Face Match 99.98%
Requirements

What You Need to Run It on iOS

These are the exact minimum and recommended requirements published in the FaceRecognition-LivenessDetection-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 with arm64 (iPhone 11 or newer recommended)
XcodeXcode 15 or newer, plus an Apple Developer team for signing
CameraFront camera (1080p recommended)
TestingPhysical iPhone required — the simulator has no usable camera for liveness
Quick Start

Install and Activate

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

  • Clone the repository. Package.swift resolves the facerecognitionsdk.xcframework engine from the repository’s GitHub release, so a normal build needs no manual download.
  • In Xcode choose File → Add Package Dependencies → Add Local…, pick the cloned folder, and add FaceRecognitionKit (and optionally FaceRecognitionCapture) to your app target.
  • Add the camera and photo-library usage descriptions to Info.plist, then activate once at launch with your license key.
swift
import FaceRecognitionKit

// AppDelegate.application(_:didFinishLaunchingWithOptions:)
FaceEngine.shared.start(license: "FP1.…") { code in
    // code == 0 when the engine is ready
}

// Read a face: detection, liveness, quality and a template
let faces = FaceDetector.detect(prepared, param: .allAttributes())
guard let face = faces.first else { return }
let live = face.liveness
let template = FaceDetector.template(prepared, face: face)
let score = FaceDetector.similarity(templateA, templateB)  // 1:1
Note

Prefer a standalone demo app?

FacePlugin also publishes FaceRecognition-LivenessDetection-iOS, a standalone iOS demo app that combines on-device face detection, template extraction, 2D liveness, 1:1 matching, and 1:N identification. It includes Enroll, Identify, Capture, and Attribute screens and a Swift helper module (FaceRecognitionKit), so you can run it as-is or copy the module into your own app. It needs iOS 13.0 or newer, Xcode 15+, and a physical iPhone, and its three native frameworks are linked in the repo README. The bundled demo license is scoped to com.faceplugin.facerecognition.app; use your own bundle ID with a license issued for it.

Platform notes

iOS Integration Notes

Signing, device and build details from the iOS repository README that save the most time on a first run.

Signing and bundle id

Set your own Team in Xcode. The bundled demo key is tied to com.faceplugin.facerecognition.app; your own app needs a license issued for its bundle identifier.

Wait for Ready

The demo keeps the camera and gallery disabled until the engine reports Ready. Mirror that in your own UI: do not open capture until FaceEngine.shared.start has finished.

Launch crash in dyld (SIGABRT)

If the app aborts at launch, Xcode may have embedded a small Swift link stub instead of the real engine. Choose Product → Clean Build Folder (⇧⌘K) and run again.

Device builds only

The engine is arm64 for devices. Xcode 15 or newer and a physical iPhone are required; an iPhone 11 or newer is recommended. The simulator has no usable camera for liveness.

Swift Package Manager

Package.swift resolves the engine from the release attached to the tag, so a normal build needs no manual download step.

Threshold settings

The demo Settings screen exposes match, liveness and pose thresholds, so you can see the effect of a change on a live face before hard-coding values.

For server-side matching see the Linux and Docker server. If you also ship on Android, the Android SDK exposes the same detect, template and similarity calls.

Licensing

How Licensing Works

Licenses are offline and bound to your app’s bundle identifier. The demo ships with a key for com.faceplugin.facerecognition.app; your own app needs its own key from FacePlugin. If we ask for a machine code, FaceEngine.shared.machineCode() returns it.

FAQ

Frequently Asked Questions

Does the iOS SDK send biometric data to the cloud?

No. Every stage of face recognition runs on your own server or directly on the device, depending on the platform – biometric templates never leave an environment you control.

How is the SDK licensed?

Licenses are offline and bound to your iOS bundle identifier. The demo ships with a key for com.faceplugin.facerecognition.app; for your own bundle id, contact FacePlugin and we issue a key for it. There are no per-call or per-match fees once licensed.

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

The FaceRecognition-LivenessDetection-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 Face Recognition to Your iOS App?

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