If you cmd-click on the word UIApplicationDelegate
in the class definition of your code, you will open the protocol definition. I suspect you are using this call:
func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) {...}
and that may have changed in Swift 1.2, but does not seem to be widely documented. If you wrote instead
func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow) {...}
then you would get the error message you report.
This particular problem is not fixed up by the automated program Daniel Nagy mentions - I ran into a similar issue.
If you have provided that optional function, then just add a ?
after the UIWindow
in the function definition.