applicationDidFinishLaunching not invoked

In your MainMenu.xib, make sure there's an instance of your AppDelegate class. To make one, drag a plain object (blue cube) into the list and set its class name to AppDelegate (or whatever your app delegate class name is).

Also in the MainMenu.xib, to connect it, drag a connection from the Application object to your AppDelegate instance (the blue cube) and connect it to the delegate outlet.

Done.


Here's something to try if you've updated to Swift 3:

Take a peek at your "AppDelegate.swift" and make sure the relevant line looks like this:

func applicationDidFinishLaunching(_ aNotification: Notification) {

as opposed to this:

func applicationDidFinishLaunching(_ aNotification: NSNotification) {

I just updated an app, and didn't think to check. The result was that my app launched, but the relevant method was never called. Obviously, you should then check for other functions you have that take Notification objects.