My Catalyst-capable apps stopped building with the newly released Xcode 12. I tested it out also on a brand new SwiftUI project with the same result. I have my App structure looking like the fragment below. This is the code that was generated by Xcode; no modifications.
I get the following compiler errors:
Is anyone else seeing this? Any ideas on how to fix it?
Code Block swift import SwiftUI @main struct TestApp: App { var body: some Scene { WindowGroup { ContentView() } } }
I get the following compiler errors:
'TestApp' is annotated with @main and must provide a main static function of type () -> Void or () throws -> Void
Cannot find type 'App' in scope
Cannot find type 'Scene' in scope
Is anyone else seeing this? Any ideas on how to fix it?