JimmyPun610 / BarcodeScanner.Mobile

Barcode Scanner using GoogleVision API for Xamarin Form, Maui
MIT License
333 stars 100 forks source link

Crash Issue When Camera Permission Off From iOS App Settings And Try To Open App #200

Open Sohel3798 opened 12 months ago

Sohel3798 commented 12 months ago

System.Exception: Could not initialize an instance of the type 'AVFoundation.AVAudioPlayer': the native 'initWithContentsOfURL:fileTypeHint:error: ' method returned nil. It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false. occurred

vladPanasiuk commented 11 months ago

I have the similar error: Could not initialize an instance of the type 'AVFoundation.AVCaptureDeviceInput': the native 'initWithDevice:error:' method returned nil.It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.

Sohel3798 commented 11 months ago

I have the similar error: Could not initialize an instance of the type 'AVFoundation.AVCaptureDeviceInput': the native 'initWithDevice:error:' method returned nil.It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.

maybe you are testing the app in iOS simulator