Share via

The .NET runtime 9.0.5 or newer could not be found in the remote host under '/usr/local/share/dotnet/dotnet'.

Kim Strasser 2,596 Reputation points
2025-07-11T09:32:56.96+00:00

I get this error in Visual Studio Version 17.14.8 when I want to start debugging my iOS project on my iPad:

The .NET runtime 9.0.5 or newer could not be found in the remote host under '/usr/local/share/dotnet/dotnet'. Please install it or try setting a different path using the MSBuild property "DotNetRuntimePath".

Visual Studio is paired with my MacBook Air and my iPad. I use macOS Sequoia 15.5 and iPadOS 18.5.

How can I install the .NET runtime 9.0.5 or newer?

I have Apple M3 chip. Should I download the macOS Arm64 SDK 9.0.302 installer from this link on my MacBook Air?

https://dotnet.microsoft.com/en-us/download/dotnet/9.0

Developer technologies | .NET | .NET Multi-platform App UI

Answer accepted by question author

Sachira De Silva 90 Reputation points
2025-07-12T01:01:23.1266667+00:00

I got the same issue and below are the steps I did to resolve it. I hope it helps you.

  1. I installed latest .NET9 onto my Mac.
  2. Verified the .NET9 installation from Visual Studio 2022 I have in my Mac
  3. Restart the Mac
  4. Rebuild the project in my Windows Visual Studio 2022
  5. Finally, I published it and it created the .ipa file

Was this answer helpful?

3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Odaronil 5 Reputation points
    2025-07-23T22:26:48.79+00:00

    Solution if you're not using Visual Studio on your Mac, but only using it as a connection (Pair Mac) from Windows.

    1. Remove all old versions of the .NET SDK from your Mac:

    Terminal:

    sudo rm -rf /usr/local/share/dotnet/sdk/*

    1. Install the latest version: You can download it from the .NET 9.0 official download page.

    After that, disconnect and reconnect to the Mac — everything should work fine.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.