NativeScript / mlkit

Apache License 2.0
24 stars 9 forks source link

IOS bug: The torch cannot be activated on IOS #18

Closed cjohn001 closed 2 years ago

cjohn001 commented 2 years ago

The bug here https://github.com/NativeScript/mlkit/issues/8 was not resolved. As the title says, on iOS I cannot activate the torch. However, I now got an additional error message in the debugger which might help.

ERROR Error: *** -[AVCaptureDevice setTorchMode:] May not be called without first successfully gaining exclusive ownership of the device using -lockForConfiguration:

Seems like the device needs to be exclusively locked somewho in order to be able to change the torch state.