title: xCode 6.3.2 Crash [UIViewController .cxx_destruct]
body: <p>I have converted an application written in Objective-C, previously using SQL, now changed to CoreData.</p>
  
  <p>Issue I identify so far is when I changed <code>NSObject</code> to <code>NSManagedObject</code> in only one of class I am getting this stupid crash in <code>ViewController</code> after <code>View</code> is completely dismissed:</p>
  
  <pre><code>[self dismissViewControllerAnimated:YES completion:nil];
  </code></pre>
  
  <p>Control stopped at <code>@implementation Viewcontroller</code>, if I changed model being used in this class back to <code>NSObject</code> there is no crash, the view is dismissed properly.</p>
  
  <p>I have found nothing so far about this crash what does this crash even means?</p>
  
  <p>Is there any way to debug this?</p>