0

Having troubles with application launching. I've been deleting Main.storyboard from project and trying to create main window from code. At this moment I figured that something went wrong and my AppDelegate is no longer functioning at all.

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

    func applicationDidFinishLaunching(_ aNotification: Notification) {
        print("OK")
    }

The code is straightforward, but it prints nothing, also breakpoint is not triggered at line with print statement. Application building and launching with no problems, but nothing is on screen / in debug output.

Last non-trivial action I've done was erasing "Main storyboard file base name" in Info.plist file. Could that cause such a problem?

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116

0 Answers0