You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A target to display the supported Xcode version from the iOS/macOS workload #25818
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.
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.
/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]
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.
Activity
rolfbjarne commentedon Jun 25, 2026
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?
Happypig375 commentedon Jun 25, 2026
I suppose that works, thanks!
Happypig375 commentedon Jul 14, 2026
@rolfbjarne
.NET for iOS 26.5 wants Xcode 26.6?
rolfbjarne commentedon Jul 15, 2026
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:
Would this work for you?
Note: this version may contain more digits (say 26.6.1).
dotnet-policy-service commentedon Jul 16, 2026
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.
Happypig375 commentedon Jul 16, 2026
Ok, this works. It's a bit annoying that net10.0 has to be specified in net10.0-ios though.
[dotnet] Make the RecommendedXcodeVersion MSBuild property public (#2…