Skip to content
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

Error #1

Open
stevenelliscox opened this issue Oct 28, 2017 · 1 comment
Open

Error #1

stevenelliscox opened this issue Oct 28, 2017 · 1 comment

Comments

@stevenelliscox
Copy link

stevenelliscox commented Oct 28, 2017

Thank you for this great tutorial!!!! Forgive me as I am VERY new to coding but I'm getting an error in the debugger:

fatal error: unexpectedly found nil while unwrapping an Optional value
2017-10-27 17:08:23.327262-0700 Text Detection Starter Project[64841:23007382] fatal error: unexpectedly found nil while unwrapping an Optional value

It seems the problem lies here?:
let deviceInput = try! AVCaptureDeviceInput(device: captureDevice!)
which gives me the error:

Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

I'm running Xcode v9.0.1 and Swift 4
Any help is appreciated for this dumb guy. Thanks!!!

@poojab
Copy link

poojab commented Dec 27, 2017

use camera permission added in plist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants