Use the following instructions to get up and running with the Mobai SDK
The SDK is packaged as a XCFramwework in order to support binaries for both simulator and iOS SDKs
- Xcode 11 or later
- iOS 13.0 or later
The Mobai SDK can be added to a Xcode project with CocoaPods or manually.
The SDK is compiled with the
Build Library for Distribution flag set to YES, which enables support for Swift module stability.
Applications using the MobaiBiometric SDK must include the NSCameraUsageDescription key in the app's Info.plist file, and request the user to authorize camera usage.
Add the following contents to your podfile
target :YourTargetName do
pod 'MobaiBiometric', '2.0.0-beta.5', :source => 'https://gitlab.com/mobaibio-public/podspecs.git'
It might be necessary to add the following to the end of the podfile in order to make the dependent cocoapods to have the correct settings
post_install do |installer|
installer.pods_project.targets.each do |target|
if ['MobaiBiometric', 'SwiftProtobuf'].include? target.name
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
Download the latest version of the MobaiBiometric framework here: MobaiBiometric.xcframework.zip
Extract the contents of the zipped file and find the MobaiBiometric.xcframework
Add the MobaiBiometric.xcframework to the Xcode project under Frameworks, Libraries, and Embedded Content section