Error Domain=AVFoundationErrorDomain Code=-11852 "Cannot use Back Camera"

2022. 1. 27. 16:58iOS/Xcode Error

728x90
반응형

기기의 앨범에 있는 사진을 선택하거나, 사진을 직접 찍고 이 사진을 업로드해보는 프로젝트 작업을 하던 중 마주한 에러.

Change your dealloc Method를 설정하거나

[self.captureSession removeInput:self.videoInput];
[self.captureSession removeOutput:self.videoOutput];

 self.captureSession = nil;
 self.videoOutput = nil;
 self.videoInput = nil;

간단하게 앱 설정을 변경해주면 된다

Please check your device settings. Goto privacy ---> Camera ---> check setting for your app-----> turn it on

 

 

AVCaptureSession addInput issues with ios8

I have an application with AVCaptureSession which work correctly with previous iOS versions, but then I tried run it on device with ios8, application crashed sporadic. but the problem wasn't solved.

stackoverflow.com

 

728x90
반응형