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

Workload installation failed: microsoft.ios.sdk::16.2.46 is not found in NuGet feeds https://api.nuget.org/v3/index.json". #16038

Closed
Saurbaum opened this issue Apr 11, 2023 · 10 comments

Comments

@Saurbaum
Copy link

Attempting to install ios support in 17.5.3 (build 15) installation fails and suggests running sudo dotnet workload install 'maui-ios'

When I do I get
Welcome to .NET 7.0!

SDK Version: 7.0.202

Telemetry

The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry


Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https

Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli

Skipping NuGet package signature verification.
Skipping NuGet package signature verification.
Installing pack Microsoft.Maui.Core.Ref.ios version 7.0.81...
Writing workload pack installation record for Microsoft.Maui.Core.Ref.ios version 7.0.81...
Installing pack Microsoft.Maui.Core.Runtime.ios version 7.0.81...
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.ios version 7.0.81...
Installing pack Microsoft.Maui.Controls.Ref.ios version 7.0.81...
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.ios version 7.0.81...
Installing pack Microsoft.Maui.Controls.Runtime.ios version 7.0.81...
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.ios version 7.0.81...
Installing pack Microsoft.Maui.Essentials.Ref.ios version 7.0.81...
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.ios version 7.0.81...
Installing pack Microsoft.Maui.Essentials.Runtime.ios version 7.0.81...
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.ios version 7.0.81...
Installing pack Microsoft.AspNetCore.Components.WebView.Maui version 7.0.81...
Pack Microsoft.AspNetCore.Components.WebView.Maui version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.AspNetCore.Components.WebView.Maui version 7.0.81...
Installing pack Microsoft.Maui.Sdk version 7.0.81...
Pack Microsoft.Maui.Sdk version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Sdk.net7 version 7.0.81...
Installing pack Microsoft.Maui.Sdk version 6.0.552...
Pack Microsoft.Maui.Sdk version 6.0.552 is already installed.
Writing workload pack installation record for Microsoft.Maui.Sdk.net6 version 6.0.552...
Installing pack Microsoft.Maui.Graphics version 7.0.81...
Pack Microsoft.Maui.Graphics version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Graphics version 7.0.81...
Installing pack Microsoft.Maui.Resizetizer.Sdk version 7.0.81...
Pack Microsoft.Maui.Resizetizer.Sdk version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Resizetizer.Sdk version 7.0.81...
Installing pack Microsoft.Maui.Templates.net7 version 7.0.81...
Pack Microsoft.Maui.Templates.net7 version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Templates.net7 version 7.0.81...
Installing pack Microsoft.Maui.Templates.net6 version 6.0.552...
Pack Microsoft.Maui.Templates.net6 version 6.0.552 is already installed.
Writing workload pack installation record for Microsoft.Maui.Templates.net6 version 6.0.552...
Installing pack Microsoft.Maui.Core.Ref.any version 7.0.81...
Pack Microsoft.Maui.Core.Ref.any version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Core.Ref.any version 7.0.81...
Installing pack Microsoft.Maui.Core.Runtime.any version 7.0.81...
Pack Microsoft.Maui.Core.Runtime.any version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.any version 7.0.81...
Installing pack Microsoft.Maui.Controls.Ref.any version 7.0.81...
Pack Microsoft.Maui.Controls.Ref.any version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.any version 7.0.81...
Installing pack Microsoft.Maui.Controls.Runtime.any version 7.0.81...
Pack Microsoft.Maui.Controls.Runtime.any version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.any version 7.0.81...
Installing pack Microsoft.Maui.Essentials.Ref.any version 7.0.81...
Pack Microsoft.Maui.Essentials.Ref.any version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.any version 7.0.81...
Installing pack Microsoft.Maui.Essentials.Runtime.any version 7.0.81...
Pack Microsoft.Maui.Essentials.Runtime.any version 7.0.81 is already installed.
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.any version 7.0.81...
Installing pack Microsoft.iOS.Sdk version 16.2.2054...
Writing workload pack installation record for Microsoft.iOS.Sdk.net7 version 16.2.2054...
Installing pack Microsoft.iOS.Sdk version 16.2.46...
Workload installation failed. Rolling back installed packs...
Rolling back pack Microsoft.iOS.Sdk installation...
Rolling back pack Microsoft.iOS.Sdk installation...
Uninstalling workload pack Microsoft.iOS.Sdk.net7 version 16.2.2054…
Rolling back pack Microsoft.Maui.Essentials.Runtime.ios installation...
Uninstalling workload pack Microsoft.Maui.Essentials.Runtime.ios version 7.0.81…
Rolling back pack Microsoft.Maui.Essentials.Ref.ios installation...
Uninstalling workload pack Microsoft.Maui.Essentials.Ref.ios version 7.0.81…
Rolling back pack Microsoft.Maui.Controls.Runtime.ios installation...
Uninstalling workload pack Microsoft.Maui.Controls.Runtime.ios version 7.0.81…
Rolling back pack Microsoft.Maui.Controls.Ref.ios installation...
Uninstalling workload pack Microsoft.Maui.Controls.Ref.ios version 7.0.81…
Rolling back pack Microsoft.Maui.Core.Runtime.ios installation...
Uninstalling workload pack Microsoft.Maui.Core.Runtime.ios version 7.0.81…
Rolling back pack Microsoft.Maui.Core.Ref.ios installation...
Uninstalling workload pack Microsoft.Maui.Core.Ref.ios version 7.0.81…
Workload installation failed: microsoft.ios.sdk::16.2.46 is not found in NuGet feeds https://api.nuget.org/v3/index.json".

@Kebechet
Copy link

I have same problem in github actions workflow

@Soap-141
Copy link

#15829

@vhugogarcia
Copy link

vhugogarcia commented Apr 11, 2023

Thanks @Soap-141 for the reference. I'm also facing the same issue. I will update to dotnet SDK 7.0.203 that was just released as well: https://dotnet.microsoft.com/en-us/download/dotnet/7.0 and see if this fixes the issue.

Update: The dotnet SDK 7.0.203 upgrade did not work to update the workloads.

@vincentcastagna
Copy link

vincentcastagna commented Apr 11, 2023

@vhugogarcia same here, 7.0.203 is not found on my side anyway .... on azure pipelines

- task: UseDotNet@2
    displayName: 'Install .NET SDK'
    inputs:
      installationPath: '$(Agent.TempDirectory)/dotnet'
      useGlobalJson: true // 7.0.203
      packageType: 'sdk'
No matching sdk version could be found for specified version: 7.0.203 Kindly note the preview versions are only considered in latest version searches if Include Preview Versions checkbox is checked.
Version 7.0.203 could not be found in its channel, will now search in adjacent channels.
Searching for version in channel 7.0
##[error]sdk version matching: 7.0.203 could not be found

@MartinSvanholm
Copy link

Same problem here, in azure pipelines.

@vhugogarcia
Copy link

I managed it to make it work on macOS using Visual Studio for Mac 17.5.3.

  • First, I installed dotnet SDK 7.0.203 using the installed from this page: https://dotnet.microsoft.com/en-us/download/dotnet/7.0

  • Second, I opened/created any .NET MAUI app on Visual Studio and Visual Studio will show a warning bar asking us to install the required workloads, I hit Install now and it started to install everything.

All good now! see screenshot below. I hope this helps others 👍🏻

image

@softlion
Copy link

They fixed it. You can dotnet workload install as before.

@baronfel
Copy link
Member

baronfel commented Apr 11, 2023

Folks this is probably a timing issue with uploading the new workload manifests and packs to NuGet.org. Today's release day and we haven't enforced an ordering on the upload of those packages. Our plan of record is to sequence them better:

  • packs first
  • manifests second

because it's the manifest updates that cause this mismatch scenario.

In the meantime, please bear with us as we try to orchestrate that.

@rolfbjarne
Copy link
Member

See also dotnet/sdk#23820.

@marcpopMSFT
Copy link
Member

I'll reply on the issue that Rolf linked and close this. As Chet said, this is a timing issue and our release process missed handling this during this release.

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

10 participants