Error "There is no application host available for the specified RuntimeIdentifier 'ios-arm64'"

Igor Kravchenko 281 Reputation points
2022-09-26T13:20:06.01+00:00

Today I installed .NET 7 SDK 7.0.100-rc.1 from here (don't ask me why) and this ruined my build. I have several errors:

NU1012: Platform version is not present for one or more target frameworks, even though they have specified a platform: net7.0-maccatalyst  
NETSDK1084	There is no application host available for the specified RuntimeIdentifier 'ios-arm64'.	AndriyCo.Tcu.MauiClient	C:\Program Files\dotnet\sdk\7.0.100-rc.1.22431.12\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets	135  

I have tried to repair from installer but no result. I need help =)
Thanks.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Igor Kravchenko 281 Reputation points
    2022-09-27T08:43:39.877+00:00

    I have created a new sample project and in the error description was

    To build this project, the following workloads must be installed: maccatalyst  
    To install these workloads, run the following command: dotnet workload restore  
    

    I ran that command

    dotnet workload restore C:\Users\Igor\source\Workspaces\AndriyCo.Tcu\AndriyCo.Tcu.MauiClient\AndriyCo.Tcu.MauiClient.csproj  
    

    and all works fine now. Interesting that suggestion to use that command was in newly created project instead of my default project.