The app delegate must implement the window property if it wants to use a main storyboard file swift

Ethan Marcus picture Ethan Marcus · Apr 4, 2015 · Viewed 46.4k times · Source

I have just developed an app, but when running in the simulator the debugger console says:

The app delegate must implement the window property if it wants to use a main storyboard file.

I have an app delegate file. What does the message mean, and how can I get my app working?

Answer

muneeb picture muneeb · Apr 4, 2015

Make sure you have the following property declaration in your AppDelegate class:

var window: UIWindow?