LLSimpleCamera icon indicating copy to clipboard operation
LLSimpleCamera copied to clipboard

Xcode 8 upgrade crashes app running in Simulator

Open adsussman opened this issue 8 years ago • 2 comments

Upon calling the camera in my app, which worked find prior to Xcode 8 upgrade, when running simulator, I get this error:

EXC_BAD_ACCESS (code=1, address=0x50) - (void)attachToViewController:(UIViewController *)vc withFrame:(CGRect)frame

It seems to be something with initializing the camera and LLSimpleCamera.

Anyone else seeing this? Any suggestions?

screen shot 2016-10-09 at 10 31 01 pm

adsussman avatar Oct 10 '16 02:10 adsussman

I am using Xcode 8.1, while running in simulator, I get this error

EXC_BAD_ACCESS (code=1, address=0x50)

At following line of code in LLSimpleCamera.m file.

_captureVideoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:self.session];

screen shot 2016-12-07 at 11 57 56 am

I have not found out solution. Let me know if you have done.

Rashesh-Bosamiya avatar Dec 07 '16 06:12 Rashesh-Bosamiya

We got around this issue by modifying the LLSimpleCamera.m file as follows:

screen shot 2016-12-07 at 4 17 40 pm

This looks to see if simulator is running, and if so, it skips the camera capture (but still allows the library access).

It's a bit of a pain since we have to now capture the pod within our Git Repo, otherwise every time the pod is installed it has to be modified.

adsussman avatar Dec 07 '16 21:12 adsussman