Skip to content

A target to display the supported Xcode version from the iOS/macOS workload #25818

Closed

Description

@Happypig375

Apple platform

No response

Framework version

net10.0-*

Affected platform version

.NET SDK 10.0.301

Description

I would like a way for the iOS or macOS workload to report the supported Xcode version without needing to parse the error message. This is useful in GitHub Actions where the result of this output can be supplied to e.g. https://github.com/marketplace/actions/setup-xcode-version that sets up the correct Xcode version for CI to run.

Steps to Reproduce

N/A

Did you find any workaround?

No response

Relevant log output

No response

Activity

  1. rolfbjarne commented on Jun 25, 2026

    @rolfbjarne
    Member

    The workload's version number can be used.

    For instance the iOS workload version "26.5.10284" matches iOS 26.5, which is Xcode 26.5 ever since Apple decided to synchronize version numbers across all OSes + Xcode.

    Would this work for you?

  2. added
    need-infoWaiting for more information before the bug can be investigated
    on Jun 25, 2026
  3. added this to the Future milestone on Jun 25, 2026
  4. Happypig375 commented on Jun 25, 2026

    @Happypig375
    MemberAuthor

    I suppose that works, thanks!

  5. Happypig375 commented on Jul 14, 2026

    @Happypig375
    MemberAuthor

    @rolfbjarne

    /Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net10.0_26.5/26.5.10301/targets/Xamarin.Shared.Sdk.targets(2570,3): error : This version of .NET for iOS (26.5.10301) requires Xcode 26.6. The current version of Xcode is 26.5. Either install Xcode 26.6, or use a different version of .NET for iOS. See https://aka.ms/xcode-requirement for more information. [/Users/runner/work/Nu/Nu/Projects/Mobile/Mobile.fsproj::TargetFramework=net10.0-ios]
    

    .NET for iOS 26.5 wants Xcode 26.6?

  6. added
    need-attentionAn issue requires our attention/response
    and removed
    need-infoWaiting for more information before the bug can be investigated
    on Jul 14, 2026
  7. rolfbjarne commented on Jul 15, 2026

    @rolfbjarne
    Member

    Ah yeah, Xcode 26.6 is for iOS 26.5 (there's no iOS 26.6): https://developer.apple.com/documentation/Xcode-Release-Notes/xcode-26_6-release-notes

    This is another approach:

    Create (or use any existing) iOS (or macOS/MacCatalyst/tvOS) project, and run:

    $ dotnet build -getProperty:_RecommendedXcodeVersion myiOSProject.csproj
    26.6

    Would this work for you?

    Note: this version may contain more digits (say 26.6.1).

  8. added
    need-infoWaiting for more information before the bug can be investigated
    and removed
    need-attentionAn issue requires our attention/response
    on Jul 16, 2026
  9. dotnet-policy-service commented on Jul 16, 2026

    @dotnet-policy-service

    Hi @Happypig375. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

  10. Happypig375 commented on Jul 16, 2026

    @Happypig375
    MemberAuthor

    Ok, this works. It's a bit annoying that net10.0 has to be specified in net10.0-ios though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-infoWaiting for more information before the bug can be investigated

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions