Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't find the runtime package for ios #269

Open
Chef904 opened this issue Jul 30, 2022 · 2 comments
Open

Don't find the runtime package for ios #269

Chef904 opened this issue Jul 30, 2022 · 2 comments

Comments

@Chef904
Copy link

Chef904 commented Jul 30, 2022

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 Chef904 changed the title Don't find the runtime package for maccatalyst Don't find the runtime package for ios Jul 30, 2022
@Ferenesht
Copy link

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".

@jessejiang0214
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants