0
私のアプリを起動しようとするとクラッシュするだけです。それが与えるエラーがunrecognized selector sent to instance 0x608000000ac0
あるとエラーがここで4行目に私AppDelegate.swiftファイルに現れるフルAppDelegate.swiftファイルです:AppDelegate.swiftがMacOS 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
}
}
がどのように私はこのエラーを修正しますか?事前のおかげで、時間以上の問題を修正しようとした後 Aaronjam