Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.06 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.06 KB

Smile Identity SPM Wrapper

This is a swift package manager wrapper for the Smile Identity iOS SDK.

Requirements

  • iOS 13 or later
  • Xcode 13.2.1 or later

Installation

Use Swift Package Manager to install

    .package(url: "https://github.com/smileidentity/ios-swift-package", .branch("main"))

Add Linker flags

Add these flags to Other Linker Flags in Build Settings of your Xcode projects.

  • -ObjC
  • -all_load

Link .bundle file to your project

The MLKitFaceDetection module requires GoogleMVFaceDetectorResources.bundle. Since the bundle can't be introduced via Swift PM, you need to link to your project manually.

Download GoogleMVFaceDetectorResources.bundle from here add it to your Xcode project and build target.

Limitation

  • Because the pre-built MLKit binary does not support arm64 architechure for iphonesimulator, this project can only be run on arm64 for iphoneos and x86_64 for iphonesimulator.