-1

This EXC_BAD_ACCESS error pops up once every 5~8 runs.

I am aware that it's caused by duplicate or bad variable usages, etc.

But I can't find exactly WHERE it is causing this error from my codes.

Is there a way to find out which variable is causing such problem?

enter image description here

Joon. P
  • 2,238
  • 7
  • 26
  • 53
  • Try exception break point to find where you getting the exact problem. – Yohan Mar 30 '15 at 07:29
  • http://stackoverflow.com/questions/17802662/exception-breakpoint-in-xcode Use this link may help you... – Chandan kumar Mar 30 '15 at 07:31
  • possible duplicate of [Break on EXC\_BAD\_ACCESS in XCode?](http://stackoverflow.com/questions/1622079/break-on-exc-bad-access-in-xcode) – Ajumal Mar 30 '15 at 09:14

1 Answers1

0

You can use Zombie to get symbolicated info related to crash

Enable Zombie Objects by-

/Users/sanjay/Desktop/Sc1.tiff

And then, checking the Enable Zombie Objects checkbox,

/Users/sanjay/Desktop/sc2.tiff

Run(profile) your project in simulator -

The instruments will be launched as-

/Users/sanjay/Desktop/sc3.tiff

Instruments would show a message similar to the following:

/Users/sanjay/Desktop/sc4.tiff

Your next step should be to set an exception breakpoint in Xcode. When your app crashes, Xcode will pause your app at the point where the crash occurs. To set an exception breakpoint, open the breakpoint navigator by choosing View > Navigators > Show Breakpoint Navigator. Click the + button at the bottom of the navigator and choose Add Exception Breakpoint.

Sanjay Mohnani
  • 5,947
  • 30
  • 46