Wenn ich versuche, meine App zu starten, stürzt es einfach ab. Der Fehler, den es gibt, ist unrecognized selector sent to instance 0x608000000ac0
und der Fehler zeigt an meinem AppDelegate.swift Datei auf Linie bis 4. Hier ist die vollständige AppDelegate.swift Datei:AppDelegate.swift stürzt Mac OS App
import Cocoa
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate { //This is where I get the error
@IBOutlet weak var window: NSWindow!
func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
}
func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
}
Wie behebe ich diesen Fehler? Vielen Dank im Voraus, Aaronjam