Skip to content

Instantly share code, notes, and snippets.

@patharanordev
Created February 9, 2024 12:53
Show Gist options
  • Save patharanordev/ee3d0f082caf3cce362e5979f9478d30 to your computer and use it in GitHub Desktop.
Save patharanordev/ee3d0f082caf3cce362e5979f9478d30 to your computer and use it in GitHub Desktop.
Run App on iOS14.2 simulator by using MAUI .NET v7.0 on macOS M1

Run App on iOS14.2 simulator by using MAUI .NET v7.0 on macOS M1

Note: Multi-platform Application UI (MAUI).

Requirements

  • .NET v7 (compat with MS iOS SDK 16.2)
  • Visual Studio 2022
  • iOS simulator 14.2
  • macOS M1

Install .NET workloads

sudo dotnet workload install maui-maccatalyst maui-ios maui-android ios maccatalyst maui android wasm-tools --sdk-version=7.0.312 --from-rollback-file https://maui.blob.core.windows.net/metadata/rollbacks/7.0.81.json
Password:

Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.312

...
Garbage collecting for SDK feature band(s) 8.0.100 7.0.300...

Successfully installed workload(s) maui-maccatalyst maui-ios maui-android ios maccatalyst maui android wasm-tools.

Checking workload :

dotnet workload list

Installed Workload Id      Manifest Version       Installation Source
---------------------------------------------------------------------
wasm-tools                 7.0.4/7.0.100          SDK 7.0.300
maui-maccatalyst           7.0.81/7.0.100         SDK 7.0.300
maui-ios                   7.0.81/7.0.100         SDK 7.0.300
maui-android               7.0.81/7.0.100         SDK 7.0.300
ios                        16.2.2035/7.0.100      SDK 7.0.300
maccatalyst                16.2.2035/7.0.100      SDK 7.0.300
maui                       7.0.81/7.0.100         SDK 7.0.300
android                    33.0.46/7.0.100        SDK 7.0.300

Use `dotnet workload search` to find additional workloads to install.

Updates are available for the following workload(s): wasm-tools maui-maccatalyst maui-ios maui-android ios maccatalyst maui android. Run `dotnet workload update` to get the latest.

Run

Press run in Visual Studio, enjoy !!!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment