title: Swift 3.0.2 and Realm - Compile Errors
body: <p>I am bumping into an issue while trying to use Realm in a Swift 3.0.2 iOS project. Starting simple, I would like to apply it to a class named <code>Genre</code>:</p>
  
  <pre><code>import Foundation
  import RealmSwift
  
  class Genre: Object {
      dynamic var id: Int
      dynamic var name: String
  
      init?(id: Int, name: String) {
          self.id = id
          self.name = name
          super.init()
      }
  
  }
  </code></pre>
  
  <p>Looks quite simple, right? Despite this, I am getting the following compile error:</p>
  
  <pre><code>Genre.swift:23:1: 'required' initializer 'init()' must be provided by subclass of 'Object'
  
  Genre.swift:23:1: 'required' initializer 'init(realm:schema:)' must be provided by subclass of 'Object'
  
  Genre.swift:23:1: 'required' initializer 'init(value:schema:)' must be provided by subclass of 'Object'
  </code></pre>
  
  <p>Any got a hint on how I could solve this? From what I have seen online, it shouldn't be necessary for me to implement those methods.</p>
  
  <p>Setup:</p>
  
  <ul>
  <li>Xcode 8.2.1</li>
  <li>Swift 3.0.2</li>
  <li>Realm installed using Cocoapod</li>
  </ul>