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

Xcode 8 upgrade crashes app running in Simulator #119

Open
adsussman opened this issue Oct 10, 2016 · 2 comments
Open

Xcode 8 upgrade crashes app running in Simulator #119

adsussman opened this issue Oct 10, 2016 · 2 comments

Comments

@adsussman
Copy link

adsussman commented Oct 10, 2016

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

@Rashesh-Bosamiya
Copy link

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.

@adsussman
Copy link
Author

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.

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