Reference
Creating a Mac Version of Your iPad
Error Message
‘AppDelegate’ is annotated with @main and must provide a main static function of type () -> Void or () throws -> Void.
Solution
import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { // Add following five lines of code to AppDelegate.swift #if targetEnvironment(macCatalyst) static func main() { UIApplicationMain(CommandLine.argc, CommandLine.unsafeArgv, nil, NSStringFromClass(AppDelegate.self)) } #endif