DEV Community

dotnetmauiman
dotnetmauiman

Posted on • Originally published at mauiman.dev

1

Getting started with .NET MAUI (iOS) on an M1 Mac

The easiest way of getting started with .NET MAUI development (iOS) on an M1 Mac.

.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML that can run on Android, iOS, macOS, and Windows from a single shared code-base.

1 Install macOS Arm64 .NET SDK on M1 Mac.

https://dotnet.microsoft.com/en-us/download

Install .NET SDK

Alternatively you can also install Visual Studio 2022 for Mac preview.

2 Install .NET MAUI workload with the dotnet CLI. A .NET "workload" is a collection of packs. Launch "Terminal" and enter the following:

dotnet workload install maui

Note - You may need "sudo" in front of the command to enable the necessary security privileges.

MAUI Workload

Check that the MAUI workload is installed successfully.

dotnet workload list

dotnet workload list

3 Create a new folder and a new MAUI app.

mkdir MyMauiApp

cd MyMauiApp

dotnet new maui

4 Run the MAUI app in an iOS Simulator.

dotnet build -t:Run -f net6.0-ios

MAUI on iOS

5 Install Visual Studio Code for Mac.

https://code.visualstudio.com/Download

6 Launch Visual Studio Code and open the "MyMauiApp" folder to view the source code.

.NET MAUI VSCODE

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay