title: Cannot use '@try' with Objective-C exceptions disabled
body: <p>Im trying to make a category in Obj-C and use <code>@try-catch</code> because there is no other way to check if an identifier in a <code>UIStoryboard</code> exists.</p>
  
  <pre><code>- (UIViewController *)viewControllerWithID:(NSString *)key {
      UIViewController *vc;
  
      @try { // ERROR: Cannot use '@try' with Objective-C exceptions disabled
          vc = [self instantiateViewControllerWithIdentifier:key];
      }
      @catch (NSException *ex) {}
  
      return vc;
  }
  </code></pre>
  
  <blockquote>
    <p>Cannot use '@try' with Objective-C exceptions disabled</p>
  </blockquote>
  
  <p>I googled that error and found that I have to check if <code>Enable Objective-C Exceptions</code> was set to yes in build settings. I checked and it is set to yes.</p>
  
  <p>Its the only solution I have found and it isnt working.</p>
  
  <p>Im using XCode 6.2 and this is a Swift project but Swift doesnt support @try-catch so thats why I do this in Obj-C.</p>
  
  <hr>
  
  <p>When I set the same setting to no I get a duplicate error message and when I set it to yes again i only get one error message. This is really weird.</p>