Installation
The MobbScan iOS SDK is distributed as a set of XCFrameworks. You add the core frameworks plus only the modules your flows need, which keeps your app as small as possible.
Latest version: 2.37.0. Use the XCFrameworks from the 2.37.0 distribution.
Requirements
- iOS
- 15.0 or laterRequired by OpenCV 4.13 since SDK 2.37
- Xcode
- 15 or later
- Device
- iPhone with camera
- Credentials
- SDK distribution and license keyThe license is bound to your bundle ID. Both are provided by Mobbeel.
1. Add the frameworks
Drag the frameworks you need from the libraries folder of the SDK distribution into your project. In the target's General › Frameworks, Libraries and Embedded Content section, set every MobbScan framework to Embed & Sign: they are all dynamic frameworks.
| Module | Frameworks | Needed for | Approx. size |
|---|---|---|---|
| Core | MobbCommons, MobbScanSDK, MobbeelCoreDetector, MobbeelDocumentDetector, MobbeelFaceDetector, opencv2, TensorFlowLiteObjC | Every integration | 133.9 MB |
| Face capture screens | MobbScan_MobbFaceUX, MobbFaceUX | Face matching with the built-in UI | +0.8 MB |
| Video | MobbScan_UnattendedPlugin, TwilioVideo* | Video recording | +22.1 MB |
* Third-party frameworks, located in libraries/third-party.
The core size includes every framework in that row; the other modules show what they add on top. The impact on the app you publish is much smaller once App Store thinning removes unused architectures and debug symbols.
If you build your own face capture screen, you do not need MobbScan_MobbFaceUX and MobbFaceUX.
2. Declare permissions
Add the usage descriptions to Info.plist. iOS shows them to the user when the permission is requested.
<!-- Always required -->
<key>NSCameraUsageDescription</key>
<string>The camera is used to scan your identity document and take a selfie.</string>
<!-- Video recording only -->
<key>NSMicrophoneUsageDescription</key>
<string>The microphone is used to record the verification video.</string>
If your project has no Info.plist, set the equivalent INFOPLIST_KEY_… build settings.
Troubleshooting
Framework not foundat build timeAdd the folder that contains the frameworks to Build Settings › Framework Search Paths.Crash at launch:
Library not loadedThe framework is not set to Embed & Sign.The camera screen does not open
NSCameraUsageDescriptionis missing, or the user denied the permission.Upgrading from an older version
See the Migration guide.
Next step
Initialise the SDK and run your first verification in the Quick start.