FacePlugin
Get in Touch
iOS

ID Document Recognition SDK for iOS

An on-device iOS SDK for scanning ID cards, passports, and driver licenses – OCR, MRZ, and barcode/QR recognition, fully on-premises with no document data ever sent to the cloud.

Fully on-deviceSwift SDKNo per-call fees
PASSPORT• AURORIA
SURNAME

WILLIAMS

GIVEN NAMES

ETHAN L.

DATE OF BIRTH

22 SEP 1992

DOCUMENT NO.

X8295147

P<AURWILLIAMS<<ETHAN<L<<<<<<<<
X8295147<7AUR9209226M3205184<<<<03
MRZ Verified✓
Barcode Valid✓
OCR Complete✓
Identity Verified
Requirements

What You Need to Run It on iOS

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

Host / toolchainmacOS, Xcode 15+ (compatible with Xcode 14), Swift 5.0
Minimum iOS version13.0 (16+ recommended)
DeviceiPhone with an A12 chip or newer, 4 GB RAM min / 6 GB+ recommended
CameraRear camera, 1080p + autofocus recommended
Test deviceA physical iPhone – the simulator is not recommended
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 repo on a Mac and install Xcode 15+.
  • Download docsdk.framework.zip, unzip it, and place docsdk.framework next to DocumentReader.xcodeproj.
  • Open the project, set your signing team (the demo license is scoped to the com.faceplugin.documentreader.app bundle ID), run on a physical iPhone, and wait for “Ready.”
swift
DispatchQueue.global(qos: .userInitiated).async {
    var ret = DocSDK.setActivation(licenseKey)
    if ret == 0 {
        ret = DocSDK.initSDK()  // 0 = success
    }
}

// recognize(_:) returns OCR / MRZ / barcode data from one document image
Platform notes

iOS Integration Notes

Details from the ID-Document-Recognition-iOS README.

Unzip the framework

Unzip docsdk.framework.zip and place docsdk.framework at the repository root, next to DocumentReader.xcodeproj, not the zip file and not in a nested folder. The engine sits inside it as Frameworks/dcrcore.framework.

Signing

Set your Team in Xcode. The demo bundle id is com.faceplugin.documentreader.app; use a license issued for your own bundle id in production.

Targets

Xcode 15 or newer and a physical iPhone. The deployment target is iOS 13.0; iOS 16 or newer is recommended. The simulator is not recommended for camera work.

License status bar

After activation getLicenseStatus reports what the key unlocks; the demo shows it as, for example, Ready · Recognition + Liveness.

Android teams use the Android SDK, and cross-platform teams can use Flutter or React Native. For document authenticity details see ID document liveness.

Licensing

How Licensing Works

Licenses are offline and bound to your app's bundle ID. The bundled demo key (for com.faceplugin.documentreader.app) is valid until 12 Aug 2027 – contact FacePlugin for a key scoped to your own app.

FAQ

Frequently Asked Questions

Does the iOS SDK send document data to the cloud?

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

How is the SDK licensed?

Licenses are offline and bound to your iOS bundle identifier. The key controls whether Recognition, Liveness (document authenticity) or both are unlocked. Contact FacePlugin with the bundle id you ship.

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 Document Recognition to Your iOS App?

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