Installation
Step 1 — Add the SDK dependency
Choose one of the following package managers:
- CocoaPods
- Swift Package Manager (SPM)
CocoaPods is a dependency manager for Cocoa projects. For installation and usage instructions, visit the official CocoaPods documentation. To integrate the iOS SDK into your Xcode project using CocoaPods, include unicocheck-ios in your Podfile:
pod 'unicocheck-ios'
CocoaPods always resolves the latest stable release. The current SDK version is 3.0.4.
Then install the dependencies from your terminal:
pod install
If you're running the project with a .xcodeproj file, open the project with the .xcworkspace file instead.
CocoaPods builds may be rejected by the App Store due to bitcode in the DeviceProfiling and UnicoSdkLogger frameworks. This issue surfaces at submission time, not at install time. See Known Issues for the workaround before submitting to production.
Swift Package Manager is a dependency manager for Swift projects, integrated with the Swift build system to automate downloading, compiling, and linking dependencies. To integrate the iOS SDK into your project using SPM, include the dependency in your Package.swift file:
.package(url: "https://github.com/acesso-io/unico-check-ios.git", .upToNextMajor(from: "3.0.4"))
Step 2 — Add camera usage permission
To use the camera opening method, you must declare camera usage in Info.plist before compiling your application:
<key>NSCameraUsageDescription</key>
<string>Camera usage description</string>