Comet icon indicating copy to clipboard operation
Comet copied to clipboard

Don't find the runtime package for ios

Open Chef904 opened this issue 3 years ago • 2 comments

the building of the project work on a regular maui application. If i try

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

the followin errors shown:

error NETSDK1112: The runtime package for "Microsoft.Maui.Core.Runtime.ios" was not downloaded. Perform a NuGet recovery with RuntimeIdentifier "ios".

Chef904 avatar Jul 30 '22 17:07 Chef904

I'm getting the same error when trying to run Comet Maui: Build FAILED.

/usr/local/share/dotnet/sdk/6.0.401/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(430,5): error NETSDK1112: The runtime pack for Microsoft.Maui.Core.Runtime.ios was not downloaded. Try running a NuGet restore with the RuntimeIdentifier 'ios'.
/usr/local/share/dotnet/sdk/6.0.401/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(430,5): error NETSDK1112: The runtime pack for Microsoft.Maui.Controls.Runtime.ios was not downloaded. Try running a NuGet restore with the RuntimeIdentifier 'ios'.
/usr/local/share/dotnet/sdk/6.0.401/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(430,5): error NETSDK1112: The runtime pack for Microsoft.Maui.Essentials.Runtime.ios was not downloaded. Try running a NuGet restore with the RuntimeIdentifier 'ios'.

I've tried adding the Nuget packages (Microsoft.Maui.Essentials.Runtime/Controls.Runtime/Core.Runtime) in Visual Studio for Mac but then I'm getting an error saying that the package isn't compatible with "dotnetplatform".

Ferenesht avatar Sep 28 '22 17:09 Ferenesht

#272 this PR will fix this. Update .net6 workload to 6.0.541. remove obj and bin folder and rebuild the project should work

jessejiang0214 avatar Oct 21 '22 07:10 jessejiang0214