I install Xcode 14 and create an APP.
Then I try to [Product -> Run] and Emulator is black screen.
Then I delete SceneDelegate.swift and add some code in the AppDelegate.swift .
Here is my AppDelegate.swift .
import UIKit
@main
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
}
}
Here is my ViewController.swift.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.a
self.view.backgroundColor = UIColor.red
}
}
Then I try to [Product -> Run] and Emulator is black screen.
It seems ridiculous.
Selecting any option will automatically load the page