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

Igor Kravchenko 281 Reputation points

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 =)

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,960 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Igor Kravchenko 281 Reputation points

    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.