-
Notifications
You must be signed in to change notification settings - Fork 163
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
NSInvalidArgumentException: Unsupported type type found. Use -availableMetadataObjectTypes. #4
Comments
Hi, On which device have you test it? Note: you can check that the device supports the reader by calling the |
My device is an iPhone 5s with iOS 8.1.3. |
Is the example project works fine or it crashes too? If you add the exception breakpoint to your project where the app crashes and with which metadataObjectTypes? The error may also comes from the camera permission (I add method to check that in the next release). |
Ok the example project runs fine.... So, the crash is gone. Thanks for the help! I also updated the pod to your last commit (777f5ee) and implemented the QRCodeReader -supportsMetadataObjectTypes: method to check if the device is allowed or able to use the camera. |
Just got bit with this bug. You can check camera permission first before presenting the view controller
|
Hi App crashed before request camera permission |
We are seeing this as well, good to see that there are some workarounds. |
Hello guys, just catched this issue right now. The feature is that Solved it with simple workaround - added another variable like |
Hey there...
I am using QRCodeReaderViewController in iOS 8 app and I took your sample code as-is to show the QR code reader.
But I am getting an exception:
I've seen on this article a potential explanation but it seems that you already setup the AVCaptureMetadataOutput and AVCaptureSession correctly.
The text was updated successfully, but these errors were encountered: