Developing on Catalina?

Hello all,

I'm just getting started with XCode and Swift. I'm trying to follow online tutorials, but I keep running into a snag: when I create a new macOS app on XCode 12.4 using SwiftUI, it creates an app for Big Sur. I'm running Catalina, and don't want to upgrade quite yet. Even if I change the minimum deployment target, it says that things like "main", "scene" and "WindowGroup" are only available in macOS 11.0 or newer.

Is there a way to configure XCode to produce code my Mac can run, so I can follow the online tutorials and get up to speed? Or am I stuck?
You cannot. I checked and got the same problem.

So, when you create the project:
  • select MacOS App (as you did)

  • but select AppKit App Delegate LifeCycle

Doing so you'll use SwiftUI 1.0 and not 2.0 which runs only on Big Sur.

I tested, it works.

If that works, don't forget to close the thread.
Thanks, that works!
Thanks. Worked for me, too!
Developing on Catalina?
 
 
Q