Skip to content

.Net 9 iOS Wrong XCode (workload?) Resolved  #24005

@epsmae

Description

@epsmae

Description

Seems like the workloads are not correctly resolved, .Net 9 picks up the latest XCode 26.0
Used global json

{
  "sdk": {
    "version": "9.0.304",
    "allowPrerelease": false,
    "rollForward": "disable"
  }
}

Microsoft.iOS.Sdk.net9.0_26.0/26.0.9752/targets/Xamarin.Shared.Sdk.targets(2346,3): error : This version of .NET for iOS (26.0.9752) requires Xcode 26.0. The current version of Xcode is 16.4. Either install Xcode 26.0, or use a different version of .NET for iOS. See https://aka.ms/xcode-requirement for more information.

Two weeks ago the same build used to work.
I also tried the 9.0.305, it only happens if I freshly install it.

Steps to Reproduce

  1. Add global json as above
  2. delete current dotnet version, including workloads
  3. Install dotnet 9.0.304 again
  4. dotnet new maui
  5. ensure xcode 16.4 is selected
  6. try build and deploy

Link to public reproduction project repository

No response

Version with bug

9.0.110 SR11

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.110 SR11

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions