How to deploy SwiftUI macOS app directly on you mac?

Viewed 39

When working with SwiftUI iOS App, I can deploy or generate the app on my iPhone easily by running the app project with my plugged device.

However, when working with macOS app, I notice that no matter how many time I run the project, the app is not generated or deployed on my mac.

How can I generate or install the macOS app directly on my mac?

1 Answers

How can I generate or install the macOS app directly on my mac?.

In Xcode, go to the Product menu, then Archive -> Distribute App -> Copy App -> Export As: MyApp

Go to the selected folder and your app is there, double click on it.

Related