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.
- Deleted
Application Scene Manifest
entry from Info.plist
- Deleted
SceneDelegate.swift
file
- Deleted all scene related methods in
AppDelegate.swift
class
- added
var window: UIWindow?
property in AppDelegate.swift
class
After 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
}
}