Xcode 8 upgrade crashes app running in Simulator
Opened this issue · 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?
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];
I have not found out solution. Let me know if you have done.
We got around this issue by modifying the LLSimpleCamera.m
file as follows:
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.