Error NETSDK1178: The project depends on the following workload packs that do not exist in any of the workloads available in this installation
I get the following error in my iOS project in Visual Studio Code:
/usr/local/share/dotnet/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1178: The project depends on the following workload packs that do not exist in any of the workloads available in this installation: Microsoft.NETCore.App.Runtime.AOT.Cross.net6.ios-arm Microsoft.NETCore.App.Runtime.AOT.Cross.net6.ios-arm64 Microsoft.NETCore.App.Runtime.AOT.Cross.net6.iossimulator-arm64 Microsoft.NETCore.App.Runtime.AOT.Cross.net6.iossimulator-x64 Microsoft.NETCore.App.Runtime.AOT.Cross.net6.iossimulator-x86 [/Users/name/TestVSCodeMono/MyGame/MyGame/MyGame.csproj]
/usr/local/share/dotnet/sdk/8.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1178: You may need to build the project on another operating system or architecture, or update the .NET SDK.
How can I install the missing workloads?
I use Visual Studio Code Version: 1.85.0 (Universal) and macOS Sonoma 14.2.