Installation
The MobbID iOS SDK is distributed as a set of XCFrameworks. Mobbeel provides them together with a sample project that shows a complete integration.
Requirements
- iOS
- 15.0 or laterRequired by OpenCV 4.13 since SDK 7.2.1.
- Xcode
- 16 or later
- Camera
- Front camera with autofocus
- Network
- Internet connectionBiometric operations run on your MobbID server.
- Credentials
- SDK distribution, application ID and API keyProvided by Mobbeel.
1. Add the frameworks
Add the frameworks of the distribution to your app target and set each of them to Embed & Sign, since they are dynamic frameworks:
Tick each framework as you add it — the list is only a guide and is not saved.
Add the frameworks of the Face module included in the distribution in the same way. opencv2 must be version 4.13.0. Depending on your project, other third-party frameworks may be required: the sample project contains the complete set.
Since version 7.2.1, MobbID and the MobbScan SDK share the same face detection engine. If your app includes both, add the shared frameworks (MobbeelCoreDetector, MobbeelFaceDetector and opencv2) only once.
2. Declare the usage descriptions
Add the usage descriptions to Info.plist. iOS displays them when it asks the user for permission:
<key>NSCameraUsageDescription</key>
<string>The camera is used to verify your identity with your face.</string>
<key>NSMicrophoneUsageDescription</key>
<string>The microphone is used during the identity verification.</string>
Request the camera permission at runtime before opening the capture. See Apple's documentation.
Troubleshooting
Framework not foundat build timeAdd the folder that contains the frameworks to Build Settings › Framework Search Paths.The app crashes at launch with
Library not loadedOne of the frameworks is not set to Embed & Sign.Build error related to the deployment target
SetIPHONEOS_DEPLOYMENT_TARGETto 15.0 or later.Upgrading from a previous version
Follow the migration guide.
Next step
Initialise the SDK and verify your first user in the Quick start.