title: How can I fix this: "this class is not key value coding-compliant for the key imageview"?
body: <p>I'm near the end of translating my code from Objective-C to Swift and I started switching the view controller classes to Swift. I managed to fix most of the problems with the view controllers but I keep getting this error for one of my View controllers.</p>
  
  <p>When it crashes: "Thread 1 signal sigabrt"</p>
  
  <p>The error log: </p>
  
  <pre><code>Terminating app due to uncaught exception 'NSUnknownKeyException', 
  reason: '[&lt;UIViewController 0x7fd98fc65ee0&gt; setValue:forUndefinedKey:]: 
  this class is not key value coding-compliant for the key background.'
  </code></pre>
  
  <p>Note: "background" in this case is a UIImageView Outlet.</p>
  
  <p>I been through multiple stack over flow solutions and none seem to help me. I've tried:</p>
  
  <ul>
  <li><p>Cleaning the build folder</p></li>
  <li><p>Deleting the app on the simulator</p></li>
  <li><p>Deleting the derived folder</p></li>
  <li><p>Checking for extra IBOutlets</p></li>
  <li><p>Deleting the connections and reconnecting them</p></li>
  <li><p>Renaming the outlet</p></li>
  <li><p>Checking for extra connections in storyboard</p></li>
  <li><p>Debugging the viewDidLoad() function</p></li>
  </ul>
  
  <p>Here is my code:</p>
  
  <pre><code>IBOutlet var background: UIImageview!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      let image: UIImage = UIImage(named: UserDefaults.standard.string(forKey: "Background")!)!
      background.image = image
      ...
  }
  </code></pre>