turning project made for Big Sur into project made for Catalina 10.15

I want to work on an app to serve as essentially a place for my customers to "keep an eye" on what my business is "up to" and have run into a roadblock. I don't know the 10.15 alternatives to @main, Scene and WindowGroup and I cannot update to Big Sur yet because I am not an administrator on this Mac and just want to only preview my project. I hope people are kinder than on StackOverflow.
Accepted Answer
The runtime needed for @main, Scene or WindowGroup exists only in Bug Sur.

So, you have very limited options.
  • Rewrite your app without @main, Scene or WindowGroup, you may need Xcode 11.x which comes with macOS SDK 10.15.

  • Get another Mac which runs Big Sur.

On Xcode 12.2, Catalina 10.15.7, iOS 14.2 simulator:
I have an app with @Main and scene (do not use Windowsgroup).
It works.

AppDelegate class:

Code Block
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {


SceneDelegate class:

Code Block
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?


So, is your problem specific to windowsGroup ?
turning project made for Big Sur into project made for Catalina 10.15
 
 
Q