title: NSError no visible interface iOS 8.1
body: <p>This piece of code was working on iOS 8. However, now when I build in release mode I get a</p>
  
  <blockquote>
    <p>No Visible @interface for 'NSError' declares the selector 'code'. </p>
  </blockquote>
  
  <p>Code is found on <code>NSError</code>. I can click into it and see that, however, I don't understand why it just stopped working with xcode 6.1 and iOS 8.1</p>
  
  <p>I tried building on 5.1.1 and it built fine in release mode. </p>
  
  <pre><code>+(BOOL) isResponseError:(NSURLResponse *)response responseString:(NSString *)responseString error:(NSError *__autoreleasing *)error {
      NSInteger statusCode = 0;
  
      if (*error) {
          statusCode = [*error code];
      }
  
      if ([response isKindOfClass:[NSHTTPURLResponse class]]) {
          statusCode = [(NSHTTPURLResponse *)response statusCode];
      }
  
      if (statusCode &gt;= 400 || statusCode &lt;= kCFURLErrorUnknown) {
          NSMutableDictionary *dic = [NSMutableDictionary dictionary];
          [dic setValue:[NSHTTPURLResponse localizedStringForStatusCode:statusCode] forKey:NSLocalizedDescriptionKey];
  
  
          return true;
      } else {
          id ret = [Serialization deserializeJSON:responseString];
  
          if ([ret superclass] == [NSMutableDictionary class] || [ret class] == [NSDictionary class]) {
              if ([ret objectForKey:@"error"]) {
                  NSMutableDictionary *dic = [NSMutableDictionary dictionary];
                  [dic setValue:[ret objectForKey:@"error"] forKey:NSLocalizedDescriptionKey];
                  return true;
              } else {
                  return false;
              }
          } else {
              return false;
          }
      }
  }
  </code></pre>