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 w
I have received this error, when I created new project in XCode 11. I have not used SwiftUI. Here are the steps, I have considered to fix this.
Application Scene Manifest entry from Info.plistSceneDelegate.swift file AppDelegate.swift classvar window: UIWindow? property in AppDelegate.swift classAfter these steps, I am able to run the app on version prior to iOS 13.
[EDIT]
Finally, your AppDelegate.swift file should look something like the following.
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
}