Comments (4)
Hi @aarango
This is a bug on our side and it will be fixed in the next release of the SDK.
Until then, a workaround is to revert to version 5.15.0 (by placing this in your Podfile):
pod 'PPBlinkID', '5.15.0'
Let me know if this helped.
from blinkid-react-native.
Hello @mparadina I tried it and I was not successful, I don't know if I failed at something, please help.
`Compiling blinkid-react-native Pods/blinkid-react-native » MBUsdlCombinedRecognizerWrapper.m
646
❌ (node_modules/blinkid-react-native/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m:46:24)
44 | id signResult = [jsonRecognizer valueForKey:@"signResult"];
45 | if (signResult != nil) {
46 | recognizer.signResult = [(NSNumber *)signResult boolValue];
| ^ property 'signResult' not found on object of type 'MBUsdlCombinedRecognizer *'
47 | }
48 | }
49 | {
647
❌ (node_modules/blinkid-react-native/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m:74:39)
72 | -(NSDictionary ) serializeResult {
73 | NSMutableDictionary jsonResult = (NSMutableDictionary*)[super serializeResult];
74 | [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"];
| ^ property 'digitalSignature' not found on object of type 'MBUsdlCombinedRecognizerResult *'
75 | [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"];
76 | [jsonResult setValue:[NSNumber numberWithInteger:self.result.documentDataMatch] forKey:@"documentDataMatch"];
77 | [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"];
648
❌ (node_modules/blinkid-react-native/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m:75:74)
73 | NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult];
74 | [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"];
75 | [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"];
| ^ property 'digitalSignatureVersion' not found on object of type 'MBUsdlCombinedRecognizerResult *'
76 | [jsonResult setValue:[NSNumber numberWithInteger:self.result.documentDataMatch] forKey:@"documentDataMatch"];
77 | [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"];
78 | [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"];
649
▸ ** ARCHIVE FAILED **
650
▸ The following build commands failed:
651
▸ CompileC /Users/expo/Library/Developer/Xcode/DerivedData/Trakku-dalbtgetbsorysekbwecqrvketne/Build/Intermediates.noindex/ArchiveIntermediates/Trakku/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/blinkid-react-native.build/Objects-normal/arm64/MBUsdlCombinedRecognizerWrapper.o /Users/expo/workingdir/build/node_modules/blinkid-react-native/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'blinkid-react-native' from project 'Pods')
652
▸ (1 failure)
653
** ARCHIVE FAILED **
654
655
656
The following build commands failed:
657
CompileC /Users/expo/Library/Developer/Xcode/DerivedData/Trakku-dalbtgetbsorysekbwecqrvketne/Build/Intermediates.noindex/ArchiveIntermediates/Trakku/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/blinkid-react-native.build/Objects-normal/arm64/MBUsdlCombinedRecognizerWrapper.o /Users/expo/workingdir/build/node_modules/blinkid-react-native/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'blinkid-react-native' from project 'Pods')
658
(1 failure)
659
Exit status: 65`
from blinkid-react-native.
I solved this problem return the library version to 5.14.0
from blinkid-react-native.
Hi @aarango
Yes, to prevent this behaviour you could revert to the 5.14.0 version as well.
However, to use the 5.15.2 version until the 5.16.0 version comes up (with the fix), a workaround would be to modify the recognizer wrappers in the 'Wrappers' folder.
Path to the folder: blinkid-react-native > Recognizers > Wrappers
In the following files, you need to delete (or comment out) the following lines:
1. MBUsdlCombinedRecognizerWrapper.m
Lines: 44-47:
id signResult = [jsonRecognizer valueForKey:@"signResult"];
if (signResult != nil) {
recognizer.signResult = [(NSNumber *)signResult boolValue];
}
Lines 74 & 75:
[jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"];
[jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"];
2. MBPassportRecognizerWrapper.m
Lines: 63-66
id signResult = [jsonRecognizer valueForKey:@"signResult"];
if (signResult != nil) {
recognizer.signResult = [(NSNumber *)signResult boolValue];
}
Lines: 81 & 82
[jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"];
[jsonResult setValue:[NSNumber numberWithInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"];
3. MBMrtdCombinedRecognizerWrapper.m
Lines 81-84:
id signResult = [jsonRecognizer valueForKey:@"signResult"];
if (signResult != nil) {
recognizer.signResult = [(NSNumber *)signResult boolValue];
}
Lines 99 & 100:
[jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"];
[jsonResult setValue:[NSNumber numberWithInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"];
4. MBBlinkIdCombinedRecognizerWrapper.m
Lines 111-114:
id signResult = [jsonRecognizer valueForKey:@"signResult"];
if (signResult != nil) {
recognizer.signResult = [(NSNumber *)signResult boolValue];
}
Lines 160 & 161:
[jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"];
[jsonResult setValue:[NSNumber numberWithInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"];
Let me know if this helps.
from blinkid-react-native.
Related Issues (20)
- Support for localisation in react-native wrapper? HOT 4
- type declaration for BlinkId HOT 7
- Android app crash - Using native module with overlay HOT 1
- For certain ID cards (german) result is empty
- Execution failed for task ':app:checkDebugAarMetadata'. HOT 3
- Customize camera Re HOT 6
- iOS crash when using DocumentVerificationOverlaySettings HOT 1
- Android app build fail: resource android:attr/lStar not found HOT 3
- Cannot build Sample app on Android due to > Task :app:mergeDebugAssets FAILED HOT 1
- iPhone 14 scanning problems HOT 12
- [Android] AAPT: error: resource android:attr/lStar while building release apk HOT 1
- Changing phone orientation while scanning turns off flashlight HOT 4
- Close the scanner programatically
- The Camera permission denied screen has some style issues HOT 1
- Close camera programatically HOT 4
- Status of this repo? HOT 2
- This license is invalid for version 6.1. It is valid only for licensee 'packageName', for product 'BlinkID' on platform 'Android' up to version 5.27. HOT 1
- IdBarcodeRecognizer TimeOut. HOT 2
- Faltal exception NSInvalidArgumentException HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blinkid-react-native.