Developed on M1 Mac NET MAUI (iOS)

Time:2022-5-5

Get started on M1 Mac Net Maui development (IOS).

. net multi platform application UI (. Net Maui) is a cross platform framework for creating native mobile and desktop applications using c# and XAML that can run on Android, IOS, MacOS, and windows from a single shared code base.

1. Install MacOS arm64 on M1 Mac NET SDK。

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

Alternatively, you can install visual studio 2022 for Mac preview. However, at present, the latest version does not support direct operation. It prompts that the runtime does not match, and the information displayed is xamarin XXX.

2. Use dotnet cli to install NET MAUI workload 。 Start the terminal and enter the following:

dotnet workload install maui

Note – you may need to prefix the command with “sudo” to enable the necessary security permissions.

Check that the Maui workload was successfully installed.

dotnet workload list

3. Create a new folder and a new Maui application.

mkdir MyMauiApp
cd MyMauiApp
dotnet new maui

4. Run Maui application in IOS simulator.

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

5. Install visual studio code for Mac.

https://code.visualstudio.com/Download

6. Start visual studio code and open the “mymauiapp” folder to view the source code.

7. Others

Run maccatalyst

dotnet run --framework net6.0-maccatalyst

Run Android

dotnet run --framework net6.0-android

Reference fromhttps://medium.com/@ConnectCode/getting-started-with-net-maui-ios-on-an-m1-mac-752744422c84

FreeSQL QQ group: 4336577 (full), 8578575 (full), 52508226 (online)

Ba & blazor QQ group: 795206915, 675147445


BlazorMaui+bb demo :GitHub | Gitee (copy only)

Develop on Mac Net Maui (full)https://www.cnblogs.com/densen2014/p/16057571.html

Developed on M1 Mac NET MAUI (iOS)https://www.cnblogs.com/densen2014/p/16057563.html

Develop on windows NET MAUIhttps://docs.microsoft.com/zh-cn/dotnet/maui/get-started/installation