title: How to debug EXC_BAD_ACCESS on device only
body: <p>I have some code that returns a struct containing 2 objects (declared as <code>id</code>).
  When trying to use one of the objects I get an EXC_BAD_ACCESS and the app crashes. This only happens on the device (ipad) not in the simulator.</p>
  
  <p>I have set NSZombieEnabled to YES, however no information is written to the console.
  I don't know if it's a problem that I'm using a workspace in Xcode 4, one project for my app, and another that builds a library which is used in my app. The EXC_BAD_ACCESS is occurring in the second project, so I don't know if NSZombieEnabled will apply to the second project?</p>
  
  <p>How do I solve this? Especially as I it only happens on the device (even goes as planned on the simulator), and it is in the second project?</p>
  
  <p>EDIT: <a href="https://github.com/davedelong/StackKit/blob/master/Classes/_SKRequestBuilderTags.m#L50-70" rel="nofollow">This is the method</a> where the EXC_BAD_ACCESS occurs, on line 62, on sortRange.lower –</p>