For anyone facing this issue on Xcode 11, here's how you fix it if you face this issue when *doing storyboard less project setup*<br>
(Adding some parts that *ricardopereira* missed)
1) First, delete the Main.storyboard file
2) Next, go to *PROJECT_NAME* -> *GENERAL*
In main interface drop-down, delete the text **Main**
[![removing reference to main from general settings][1]][1]
3) Now go to info.plist and delete **Storyboard Name**
[![removing reference to the storyboard from info.plist][2]][2]
4) Finally, modify *scene(_:willConnectTo:options)* code in the file **SceneDelegate.swift** (Yes! It's not in App Delegate anymore.)
```
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: windowScene.coordinateSpace.bounds)
window?.windowScene = windowScene
window?.rootViewController = ViewController()
window?.makeKeyAndVisible()
}
```
You can also refer to this video instead:
[1]:
[2]: