Skip to main content

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​

VersionChangeAction
2.37New detection engine; minimum iOS 15.0Update opencv2 to 4.13.0 and add MobbeelCoreDetector, MobbeelDocumentDetector and MobbeelFaceDetector. See 2.37
2.26Minimum iOS 12.0; deprecated document types and methods removedSee 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.xcframework
  • MobbeelDocumentDetector.xcframework
  • MobbeelFaceDetector.xcframework
Xcode›Target›General›Frameworks, Libraries, and Embedded Content
NameEmbed
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​

RemovedUse instead
NIEIDCardESPResidencePermitV1
ESPIDCardRPESPResidencePermitV2
NDLPassportNLDPassport
Passport, PassportTD3TD3Passport

Methods​

RemovedUse 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