# FaceAISDK_iOS **Repository Path**: onDeviceAI/FaceAISDK_iOS ## Basic Information - **Project Name**: FaceAISDK_iOS - **Description**: iOS FaceAISDK is on_device Offline Face Detection 、Recognition 、Liveness Detection Anti Spoofing SDK FaceAISDK是iOS 设备端可离线不需联网的人脸识别、动作活体检测、人脸录入SDK,快速集成后实现相关功能。 - **Primary Language**: Swift - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 8 - **Forks**: 8 - **Created**: 2025-06-04 - **Last Updated**: 2026-08-15 ## Categories & Tags **Categories**: cv, ios-modules **Tags**: IOS, Face-recognize, liveness ## README [中文](./README_zh-CN.md) ## Table of Contents - [FaceAISDK Introduction](#faceaisdk-introduction) - [Integration Guide](#integration-guide) - [More Information](#more-information) --- ### At a glance | Item | Details | | --- | --- | | Product | FaceAISDK for iPhone & iPad | | Capabilities | Face detection, recognition, liveness detection, anti-spoofing | | Runtime | Fully offline, on-device processing | | Language support | Swift / Objective-C | | Recommended Xcode | 15.2+ (verified up to 26.5) | ### FaceAISDK Introduction FaceAISDK for iPhone & iPad is an on-device, fully offline SDK for face detection, face recognition, liveness detection, and anti-spoofing. FaceAISDK_iOS enables face enrollment, liveness detection, and face recognition completely offline without network access, so you can quickly integrate related capabilities into your app. ### Integration Guide Minimum supported version: Xcode 15.2 (Swift 5.9). Compatible with Xcode 26.5 (Swift 6.3). Supports both Swift and Objective-C. #### 1. Add the dependency
Podfile snippet ```ruby pod 'FaceAISDK_Core', :git => 'https://github.com/FaceAISDK/FaceAISDK_Core.git', :tag => '2026.*******' # pod 'FaceAISDK_Core', '2026.*******' ```
#### 2. Install pods Use CocoaPods on a machine with unrestricted network access. ```bash pod install ``` If you only need to update the face SDK: ```bash pod update FaceAISDK_Core ``` #### 3. Expect a longer first install The first install of the base dependency `TensorFlowLiteSwift` may take about 30 minutes, depending on network conditions and device performance. You can also verify whether `TensorFlowLiteSwift` is accessible in your current network environment by opening: https://github.com/tensorflow/tensorflow/archive/refs/heads/master.zip #### 4. Common network-related errors Example error when network access is restricted: ```text Updating local specs repositories Downloading dependencies Installing FaceAISDK_Core 2026.07.31 [!] Error installing FaceAISDK_Core Cloning into '/var/folders/gh/p4wv4ytj4tn5xrhgq0n_jnbm0000gn/T/d20251020-8626-c57agm'... fatal: unable to access 'https://github.com/FaceAISDK/FaceAISDK_Core.git/': Error in the HTTP2 framing layer ``` #### 5. First launch crash after update If `TensorFlowLiteSwift` crashes and reports an error on first launch or after an update: ```text Thread 1: EXC BAD ACCESS (code=1, address=0x800008) ``` In Xcode, choose **Product** > **Clean Build Folder** / **Clean All Issues**, then run **pod update FaceAISDK_Core** to update FaceAISDK. #### 6. Git transfer failures ```text [!] Error installing TensorFlowLiteSwift Cloning into '/var/folders/ft/7cxjq5ss2094sj67mbhnzjrc0000gn/T/d20260113-17932-1xwealt'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: 3926 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF ``` Make sure the network environment is stable, and increase the Git buffer size: ```bash git config --global http.postBuffer 987654321 git config --global https.postBuffer 987654321 ``` ### More Information | Platform | Link | | --- | --- | | iOS Swift only | https://github.com/FaceAISDK/FaceAISDK_iOS | | iOS Objective-C| https://github.com/FaceAISDK/ObjectC_FaceAISDK | | Android | https://github.com/FaceAISDK/FaceAISDK_Android | | Flutter plugin | https://github.com/FaceAISDK/FaceRecognition_Flutter | | uniApp UTS plugin | https://github.com/FaceAISDK/FaceAISDK_uniapp_UTS | | React Native | https://github.com/FaceAISDK/FaceRecognition_ReactNative | **Email:** FaceAISDK.Service@gmail.com ![FaceAISDK](/Doc/FaceAISDK.png) ### Android Demo APK Download

---