Here is some code that was working prior to Christmas:
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application (
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [ UIApplicationLaunchOptionsKey : Any ]?
) -> Bool {
window = UIWindow( frame: UIScreen.main.bounds )
return true
}
I updated my project to Swift 4.0(.2) just before Christmas, came back and ran the app to discover that the same code now throws the exception mentioned in this question. Has something changed?