2017-11-26 6 views
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

答えて

0

を、私は(もちろん、私のコードをバックアップした後)私のターゲットを削除し、新しいものを作りました。あなたの助けに感謝、@OverD!

関連する問題