-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faltal exception NSInvalidArgumentException #213
Comments
wide the error information - Your app just crashed. See the error below. Este es un ejemplo del código en que estamos utilizando `import React from 'react' const licenseKey = Platform.select({ const { height } = Dimensions.get('window') function ScanCodeQRDriver({ onScanResult }) { async function scan() {
} return ( export { ScanCodeQRDriver } Y este es el código ejemplo de la implementación en IOS
require 'json' platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0' target 'Trakku' do use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks'] Flags change depending on the env values.flags = get_default_flags() pod 'Firebase', :modular_headers => true React Native Maps dependenciesrn_maps_path = '../node_modules/react-native-maps' use_react_native!( post_install do |installer|
end post_integrate do |installer| Dependencies "dependencies": { |
Hi @aarango We've managed to reproduce the issue on our end and are investigating why this behavior is happening. |
Hi @aarango We found out what was causing the IDBarcode recognizer issue, which will be fixed in the upcoming releases. First, you need to locate the MBSerializationUtils.m file in the blinkid-react-native node module. In the file, you just need to comment out line 27: After you comment it out, the crash will not appear anymore. If this method is not an option, I can recommend using our BlinkID Single Side recognizer, which contains all of the functionalities of the IDBarcode recognizer. You can limit it to only extracting the information from the barcodes. This is a sample implementation of the recognizer to only extract the barcode information:
Handling the results:
All of the information you can obtain from the barcodeResult can be found here. |
I have this error when a try use the IdBarcodeRecognizer
NSInvalidArgumentException: -[MBDate originalDateStringResult]: unrecognized selector sent to instance 0x282abe850
0 CoreFoundation 0x000000018f3cada0 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 40352
1 libobjc.A.dylib 0x00000001884883d0 objc_exception_throw + 60
2 CoreFoundation 0x000000018f53fb14 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 1567508
3 CoreFoundation 0x000000018f3e11c8 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 131528
4 CoreFoundation 0x000000018f4479f0 _CF_forwarding_prep_0 + 96
5 Trakku 0x0000000105657dd8 +[MBSerializationUtils serializeMBDateResult:] + 212
6 Trakku 0x00000001056547e0 -[MBIdBarcodeRecognizer(JsonSerialization) serializeResult] + 684
7 Trakku 0x000000010564a648 -[MBBlinkIDModule overlayViewControllerDidFinishScanning:state:] + 416
8 Trakku 0x000000010564d964 -[MBBlinkIdOverlaySettingsSerialization blinkIdOverlayViewControllerDidFinishScanning:state:] + 104
9 BlinkID 0x00000001094579dc $sSo25NSMutableAttributedStringC7BlinkIDE6string5style4fontABSS_So16NSParagraphStyleCSo6UIFontCtcfc + 673556
10 UIKitCore 0x00000001914fda80 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 846464
11 UIKitCore 0x00000001914fc9dc B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 842204
12 UIKitCore 0x00000001914fc0f8 B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 839928
13 QuartzCore 0x00000001908f7a5c 0AE8CEB8-0DD6-363F-951D-16AAC60A0951 + 80476
14 libdispatch.dylib 0x0000000196889eac B74732B5-D7FE-34A4-9346-41945701F020 + 16044
15 libdispatch.dylib 0x00000001968986a4 B74732B5-D7FE-34A4-9346-41945701F020 + 75428
16 libdispatch.dylib 0x00000001968982f4 _dispatch_main_queue_callback_4CF + 44
17 CoreFoundation 0x000000018f459d18 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 625944
18 CoreFoundation 0x000000018f43b650 6A07CBE8-4F65-3DBC-B59D-C1A188A7B95D + 501328
19 CoreFoundation 0x000000018f4404dc CFRunLoopRunSpecific + 612
20 GraphicsServices 0x00000001ca6ac35c GSEventRunModal + 164
21 UIKitCore 0x00000001917cc37c B0858D8E-7220-37BF-873F-ECC2B0A358C3 + 3789692
22 UIKitCore 0x00000001917cbfe0 UIApplicationMain + 340
23 Trakku 0x0000000104e9d948 main + 96
24 dyld 0x00000001ae8d4dec 41605DC7-F412-37D1-B51B-FEE1A26701E9 + 89580
The text was updated successfully, but these errors were encountered: