I know this post is old, but if you are migrating from Xamarin to MAUI in Visual Studio (deprecated) you can do this:
- Update your Mac's operating system version (I have MacBook Pro, Sonoma 14.7)
- Update XCode and update iOS (today iOS 18.0)
- Update Visual Studio (today 17.6.14)
- Check in Visual Studio use .Net 8.0 in Preview Features
- Install SDK 8.0.403 and .NET Runtime 8.0.10 from https://dotnet.microsoft.com/en-us/download/dotnet/8.0 (today version, IMPORTANT: If you install and still have the error, install x64 and arm64, or restart mac)
- Open the terminal in Visual Studio (View - Terminal):
- sudo dotnet workload install maui (press enter and wait installation)
- sudo dotnet workload install maui-tizen (press enter and wait installation)
- sudo dotnet workload install ios (press enter and wait installation)
- Close Visual Studio and open again
- Done