title: Swift build error (involving word "class" as argument) with subclassed Objective-C class
body: <p>I have a build error when trying to subclass a custom Objective-C class (a subclass of UIViewController) in Swift. </p>
  
  <p>When I try to subclass in Swift, I get the build errors in the picture below. All of them relate to the use of the word <code>class</code> as an argument in the <a href="https://github.com/aryaxt/OCMapper" rel="nofollow noreferrer">OCMapper</a> library (where I've opened <a href="https://github.com/aryaxt/OCMapper/issues/25" rel="nofollow noreferrer">an issue</a> as well).</p>
  
  <p>Some more notes:</p>
  
  <ul>
  <li>In the project, I both import and use Objective-C code in the Swift code and import and use Swift code in the Objective-C code.</li>
  <li>I import the compiled <code>Module-Swift.h</code> only in <code>.m</code> and <code>.mm</code> files and forward declare classes that I need in <code>.h</code> files.</li>
  <li>I've attempted to create a <code>Module-Swift-Fixed.h</code> class where I forward declare and/or import the custom Objective-C class headers (as recommended <a href="https://stackoverflow.com/questions/24098408/how-can-i-add-forward-class-references-used-in-the-swift-h-header/24132572#24132572">here</a>), but that hasn't made a difference.</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/8L0ws.png" alt="many build errors">
  <img src="https://i.stack.imgur.com/mf4x7.png" alt="build error"></p>
  
  <p>Has anyone seen anything like this before or have a solution?</p>