Migration guide
Upgrade to the latest version whenever you can: each release improves capture, accuracy and security. This page covers migration history from 2.24 onward; the first listed change is 2.26. It lists only changes that require action in your code or project.
Summary
| Version | Change | Action |
|---|---|---|
| 2.37 | New detection engine; minimum iOS 15.0 | Update opencv2 to 4.13.0 and add MobbeelCoreDetector, MobbeelDocumentDetector and MobbeelFaceDetector. See 2.37 |
| 2.26 | Minimum iOS 12.0; deprecated document types and methods removed | See 2.26 |
2.37
Version 2.37.0 updates the detection engine and its framework dependencies. Replace the SDK frameworks in your app with the ones in the 2.37.0 distribution. No changes to the document scanning API or its call sequence are required.
Minimum iOS version
OpenCV 4.13.0, included in this release, requires iOS 15.0 or later. Set your app's deployment target to iOS 15.0 or later.
Update OpenCV
Replace the OpenCV framework your app uses with opencv2.xcframework 4.13.0, located in the libraries/third-party folder of the distribution. Add it to your target, link it and select Embed & Sign in Frameworks, Libraries, and Embedded Content.
Add the detector frameworks
Add these XCFrameworks from the libraries folder to your target, link them and select Embed & Sign for each one. MobbScanSDK.xcframework depends on them:
MobbeelCoreDetector.xcframeworkMobbeelDocumentDetector.xcframeworkMobbeelFaceDetector.xcframework
MobbCommons.xcframeworkEmbed & Sign MobbeelCoreDetector.xcframeworkAddEmbed & Sign MobbeelDocumentDetector.xcframeworkAddEmbed & Sign MobbeelFaceDetector.xcframeworkAddEmbed & Sign MobbFaceUX.xcframeworkoptionalEmbed & Sign MobbScan_MobbFaceUX.xcframeworkoptionalEmbed & Sign MobbScan_UnattendedPlugin.xcframeworkoptionalEmbed & Sign MobbScanOffline.xcframeworkoptionalEmbed & Sign MobbScanSDK.xcframeworkEmbed & Sign opencv2.xcframework4.13.0UpdateEmbed & Sign TensorFlowLiteObjC.xcframeworkEmbed & Sign TwilioVideo.xcframeworkoptionalEmbed & Sign 3 frameworks to add and 1 to update. Optional frameworks are only needed for the module that uses them.
See Installation for the full list of frameworks per module.
2.26
Document types
| Removed | Use instead |
|---|---|
NIEIDCard | ESPResidencePermitV1 |
ESPIDCardRP | ESPResidencePermitV2 |
NDLPassport | NLDPassport |
Passport, PassportTD3 | TD3Passport |
Methods
| Removed | Use instead |
|---|---|
scanDocumentForSide:forScanId:withDetectionResult:andScanResult:andScanMrzOperation: and scanMRZForOperation:… | scanMRZDocument:detectionResult:scanResult: |
checkDocumentValidationWithType:… and validateFaceForScanId:withDocumentImage:params:withFaceAcquisitorResult:withCheckResult:andDocument: | validateFaceForScanId:params:withFaceAcquisitorResult:withCheckResult: |
getImages() | Read the images from the detection and face callbacks |