I am not using main.storyboard at all and making everything through code, but I get this error with this code in my app delegate.
Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let rootView = HomeCollectionViewController(collectionViewLayout: UICollectionViewFlowLayout())
if let window = self.window {
window.rootViewController = rootView
}
return true
}