import AppKit _ = NSApplication.shared let delegate = AppDelegate() NSApplication.shared.delegate = delegate NSApplication.shared.run()