dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.74k stars 1.07k forks source link

Installing MAUI workload on M1 MacBook Pro gets stuck. #45023

Open NewSkyLine-dev opened 2 days ago

NewSkyLine-dev commented 2 days ago

Description

When trying to install .NET MAUI using the sudo dotnet workload install maui, the installer gets stuck at Microsoft.Android.Sdk.Darwin Image

I tried running it for ~1h with a stable internet connection, but with no result.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

macOS 15

Did you find any workaround?

No response

Relevant log output

Ying-6 commented 1 day ago

@NewSkyLine-dev Hi, I downloaded .NET 9 SDK and installed MAUI on M1 and Intel Mac mini environment, but your issue did not repro. I want to confirm with you: whether your issue is repro stable on your Mac environment? Do you have other Mac environments to try to see if MAUI can be successfully installed? What is the SDK version you installed? Did you just install .NET MAUI using the sudo dotnet workload install maui command to install without adding anything else? Looking forward to your reply!

NewSkyLine-dev commented 1 day ago

@Ying-6 Hi, thanks for you answer. I don't have another Mac to check if it works there. I only have my M1 Pro MacBook Pro. This is the output of the dotnet --info command:

.NET SDK:
 Version:           9.0.100
 Commit:            59db016f11
 Workload version:  9.0.100-manifests.c6f19616
 MSBuild version:   17.12.7+5b8665660

Laufzeitumgebung:
 OS Name:     Mac OS X
 OS Version:  15.0
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /usr/local/share/dotnet/sdk/9.0.100/

Installierte .NET-Workloads:
Es sind keine installierten Workloads zum Anzeigen vorhanden.
Konfiguriert für die Verwendung loose manifests beim Installieren neuer Manifeste.

Host:
  Version:      9.0.0
  Architecture: arm64
  Commit:       9d5a6a9aa4

.NET SDKs installed:
  9.0.100 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

And yes, I only installed the maui workload using dotnet workload install maui, nothing else. (Or at least tried)