EXC_BAD_ACCESS issue debugging

62 Views Asked by At

I sometimes get EXC_BAD_ACCESS without knowing the source.I enabled Zombies and this is now what I get on the console:

2018-08-27 18:37:41.785523+0530 MyProject[3419:1228271] *** -[MyProject.VideoLibrary retain]: message sent to deallocated instance 0x103078200

VideoLibrary is the name of controller and I am not sending any retain messages. How do I go further to identify the issue and fix it? I am using Swift 4.0 if that matters.

1

There are 1 best solutions below

0
obit On

When I want to have more information about a crash, I create an exception breakpoint.

You can add one from the breakpoint navigator by clicking on the "+".

When added, edit it and add po $arg1 for action. This will print information about the exception.