A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Thank you for reaching out.
This error is happening because Visual Studio is not able to download the iOS workload from NuGet.
The message “cannot load https://api.nuget.org/v3/index.json” means the machine is not able to reach NuGet properly. Because of that, the iOS workload manifest (microsoft.net.sdk.ios) cannot be installed, so pairing to Mac fails.
This is usually not a problem with your project, but with connectivity or environment setup.
First, please check if the NuGet URL opens in your browser. If it does not load, then it is a network issue (proxy, firewall, VPN, etc.). Even if it opens in browser, NuGet inside .NET can still fail due to proxy or TLS differences.
You can try the following steps:
- Clear NuGet cache
dotnet nuget locals all --clear - Clean and reinstall workloads
dotnet workload clean dotnet workload update dotnet workload install ios - Try from a different network (for example, mobile hotspot) to rule out firewall or proxy blocking
If the issue continues, check NuGet source settings and temporarily switch to the v2 feed (https://www.nuget.org/api/v2/) as a workaround when v3 API is not reachable
Also, after fixing the NuGet issue, make sure the Xcode version on the Mac matches what the installed iOS workload expects. If the versions do not match, pairing will still fail even if the workload installs correctly.
Please let us know if you require any further assistance, we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer". So that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.