title: NSApplicationDelegate not working without Storyboard
body: <p>I'm attempting to create a macOS application without a storyboard in Xcode 8 (stable) on macOS Sierra. However, my <code>AppDelegate</code> is not even being initiated. Here's the code I have:</p>
  
  <pre><code>import Cocoa
  
  @NSApplicationMain
  class AppDelegate: NSObject, NSApplicationDelegate {
      var window: NSWindow!
  
      override init() {
          super.init()
          print("Init")
      }
  
      func applicationDidFinishLaunching(_ aNotification: Notification) {
          print("Finished launching")
  
          // Create a window
          window = NSWindow()
  
          // Add the view controller
          let viewController = ViewController()
          window.contentView?.addSubview(viewController.view)
  
          // Show the window
          window.makeKeyAndOrderFront(nil)
      }
  }
  </code></pre>
  
  <p>Neither <code>init</code> or <code>applicationDidFinishLaunching(_ aNotification: Notification)</code> is being called. Any help would be much appreciated.</p>