Skip to content

Platform Compatibility

Justin Wojciechowski edited this page Nov 30, 2026 · 7 revisions

Platform & Toolchain Compatibility

This page explains how the Xcode, .NET, Apple SDK, and minimum-OS versions used to build a binding propagate to the people who generate bindings and the people who consume them — and exactly which of those move a requirement downstream when the tooling is bumped.

Which pairing should I use? 11.0.0 supports .NET 10 with Xcode 26 or Xcode 27, and .NET 11 with Xcode 27. How to choose one and hold a machine on it is on Choosing .NET and Xcode. This page explains what each choice means for the people who consume your binding.

This is the platform/toolchain version axis. For the separate question of how a binding pins the SwiftBindings.Runtime package version (and why two bindings a minor apart can't be installed side by side), see Version Coexistence.

The four distinct version axes

Axis Where it lives Who it constrains Device (runtime) impact?
.NET band — net10.0 or net11.0 The TFM of the generated binding (net10.0-ios26.0, net11.0-ios27.2) Authors and consumers No — build-time only
Apple SDK / target platform version (TPV) — the -ios26.0 part Pinned in the binding's TFM Authors and consumers No — build-time only
Minimum deployment OS — SupportedOSPlatformVersion Binding csproj; clamped to a per-platform floor (iOS/tvOS/Catalyst 15.0, macOS 12.0) End-user devices Yes — the only axis devices see
Xcode — the toolchain The author's machine (and any consumer's app build) Authors directly; consumers indirectly No — build-time only

The key idea is that the build-time SDK version and the runtime device floor are separate properties. Building against the iOS 26 SDK does not force end users onto iOS 26: the binding's SupportedOSPlatformVersion (its deployment floor) is independent of the iOS 26 SDK it compiles against, so it can target a floor as low as 15.0 on iOS (or 12.0 on macOS). This works because Swift is ABI-stable on Apple platforms — a stable-ABI app links the OS-resident /usr/lib/swift at run time rather than carrying its own copy — which is the same design these bindings already rely on for App Store packaging. (The floor is a per-binding property; the OS your end users actually need is whatever the source library's own APIs require.)

Supported pairings

Pairing Binding TFM (versionless project) iOS / tvOS / Mac Catalyst runtime Deployment floors (iOS / tvOS / Catalyst / macOS)
.NET 10 + Xcode 26 net10.0-<platform>26.0 Mono; NativeAOT when published with PublishAot 15.0 / 15.0 / 15.0 / 12.0
.NET 10 + Xcode 27 net10.0-<platform>26.0 Mono; NativeAOT when published with PublishAot 15.0 / 15.0 / 15.0 / 12.0
.NET 11 + Xcode 27 net11.0-<platform>27.2 CoreCLR: interpreter in Debug, ReadyToRun in Release; NativeAOT when published with PublishAot 15.0 / 15.0 / 17.0 / 14.0

macOS runs on CoreCLR in every pairing. Debug and Release builds are both supported in every pairing. The SDK, workload set, and Xcode versions this release was built and tested with are listed on Choosing .NET and Xcode.

What a generated binding declares

For an iOS binding, the generator emits a project with:

<TargetFramework>net10.0-ios26.0</TargetFramework>           <!-- .NET 10 band + iOS 26 SDK (TPV) -->
<SupportedOSPlatformVersion>15.0</SupportedOSPlatformVersion> <!-- runtime floor; raised only if the source library demands more -->
  • The TPV is pinned to 26.0 for net10.0 (the base iOS 26 SDK band) so .NET 10 apps on Xcode 26 and Xcode 27 can reference it. It is not auto-tracked to your installed Xcode; it is a fixed value, and the generator's --platform-version flag overrides it. For net11.0 the default is 27.2, the only platform version the .NET 11 Apple workloads build (any other fails restore with NETSDK1140). The generator's --target-framework option (net10.0-ios, net11.0-ios27.2, …) picks the .NET band, and a versioned value also sets the TPV. Under the MSBuild SDK the TPV comes from the project's <TargetFramework> instead: a versionless .NET 10 library resolves to 26.0 on every .NET 10 workload. Note: the 26.0 fallback applies to local/dev generation. A run that produces a publishable package (the generator CLI with a published --swift-runtime-version) requires an explicit --platform-version and fails fast without one, so the nupkg is labeled for a specific Apple workload cut rather than silently inheriting 26.0.

  • The deployment floor is the source framework's own MinimumOSVersion, clamped up to a per-platform floor:

    Platform Floor (net10.0) Floor (net11.0)
    iOS, tvOS 15.0 15.0
    Mac Catalyst 15.0 17.0
    macOS 12.0 14.0

    The net11.0 floors for macOS and Mac Catalyst are the minimums the .NET 11 Apple workloads accept.

    A macOS framework whose own minimum is 11 still emits 12.0; one whose own minimum is 13 emits 13.0. The floor rises above the platform default only when the source library's own minimum is higher. Caveat: if the framework's MinimumOSVersion is missing, malformed, or a vendor sentinel (≥ 100.0), the generator falls back to that platform's floor, which can understate the library's true OS requirement — verify the floor against the vendor's stated minimum if in doubt.

A. If you generate your own bindings (author)

You need one of the supported pairings:

  • .NET 10 SDK with Xcode 26 or Xcode 27, or the .NET 11 SDK with Xcode 27 (currently 27.2)
  • the platform workload from the workload set that matches that Xcode (dotnet workload install ios)

The generator checks only the Xcode major version, never the minor version, so any Xcode 26.x or 27.x passes without a warning. Outside 26–27 (such as 25 or 28), it emits warning SWIFTBIND055 and continues. It fails only under the generator's --strict-inputs option, which the MSBuild SDK does not pass. The version match that matters is Microsoft's. Your installed .NET Apple workload must be built for your Xcode, or an app build fails with E0191 (see Using another Xcode version). A binding project targeting net10.0-ios emits -ios26.0 on every .NET 10 workload.

The binding is compiled with whichever Xcode is active (xcode-select, or DEVELOPER_DIR), so that Xcode's SDK is the one the Swift wrapper and, for an Apple-framework binding, the bound API surface come from. The TPV in the package label does not follow it.

B. If you consume a binding (app developer)

Your app's <TargetFramework> must satisfy NuGet's framework-compatibility rules against the binding's — which here means ≥ on both axes, the .NET band and the Apple platform version, enforced at restore time. Verified against a net10.0-ios26.0 binding across these cases:

Your app's TFM Result
net10.0-ios (versionless, which resolves to the workload's own platform version, such as 26.2 on Xcode 26.3 or 27.2 on Xcode 27.2) ✅ builds and runs — the rule is ≥, not ==
net11.0-ios (.NET 11) ✅ builds and runs
net10.0-ios26.0 (exact match) ✅ restores, but an app on this TFM fails to build on any Xcode other than 26.0, which the 26.0 platform pack requires
net10.0-ios18.0 (older Apple SDK) ❌ not compatible — binding supports only net10.0-ios26.0
net9.0-ios18.0 (older .NET band) ❌ NU1202 — net9 cannot consume a net10 assembly

So a consumer needs .NET 10 (or a later compatible band) and a platform workload that ships an iOS 26 (or later) SDK — which, in practice, is the .NET 10 iOS workload. A binding packed for net11.0-ios27.2 needs a .NET 11 app: a net10.0 app gets NU1202.

Keep your app's TFM versionless (net10.0-ios, net11.0-ios). The workload then builds it against the platform version that its own Xcode supports. Pinning an app to an older platform version selects an older platform pack, which expects the Xcode it was built for. (Building any .NET iOS app already requires a compatible Xcode for the final link and code-sign step; that is inherent to .NET-for-iOS, not specific to these bindings.)

But the device requirement is unchanged: your app's deployment target can stay at iOS 15, and your end users' devices do not need iOS 26.

The .NET band and the Apple SDK are coupled

You cannot freely dial the Apple SDK below what the .NET band's workload ships. The .NET 10 iOS workload for Xcode 26.3 ships iOS 26 SDK packs (the tested install has net10.0_26.0 and net10.0_26.2, but no net10.0_18.0). The .NET 10 workload for Xcode 27.2 ships net10.0_26.0 and net10.0_27.2 (no 26.2), and the .NET 11 workload builds only net11.0_27.2 for .NET 11 (it also carries a net10.0_26.0 pack that requires Xcode 26.0; see Keep .NET 11 out of a .NET 10 build). So in practice these two axes move together: choosing .NET 10 brings the iOS 26 SDK along with it. (This is why the older-Apple-SDK row above fails: even the .NET band being correct isn't enough — the platform version must clear the bar too.)

What changes when the tooling is bumped

Bump Authors must… Consumers must… End-user devices…
Xcode within major 26 (e.g. 26.3 → 26.5) install the workload set built for that Xcode nothing — the pinned TPV stays 26.0 unaffected
Xcode 26 → 27 on .NET 10 install the .NET 10 workload set built for that Xcode, then clean bin/ and obj/ and rebuild nothing — a versionless net10.0 binding still emits -ios26.0 (an Apple-framework binding pinned to 27.2 is the exception) unaffected
Apple SDK / TPV (raise the pinned -ios26.0 → -ios27.0) install the newer Xcode / SDK move to a .NET workload shipping that SDK, then rebuild still only ≥ the (unchanged) deployment floor
.NET major (10 → 11) move to the .NET 11 SDK + workload and the Xcode it is built for (currently 27.2) move to .NET 11 (emitted TFM becomes net11.0-*27.2), then rebuild iOS and tvOS stay at 15.0; macOS rises to 14.0 and Mac Catalyst to 17.0, the .NET 11 workload minimums
Source library's own min-OS (rises above 15) regenerate, rebuild & republish the binding (no TFM change, but the emitted floor changes) update to the new package & rebuild must run that higher OS — the one device-facing change

Bottom line: bumping Xcode within a major version, or from 26 to 27 on .NET 10, leaves the emitted TFM and floor unchanged, so it propagates nothing to consumers (as long as their .NET workload stays compatible with their Xcode). The two changes that force a new build requirement on consumers are a .NET major bump (forces the .NET band) and raising the pinned TPV (forces a newer Apple SDK / workload) — both build-time requirements, not device-OS requirements. Of the inputs this page covers, the only one that raises the binding's emitted floor — and so the OS your end users' devices need — is the source Swift library's own minimum deployment target. (A consumer's own app can always set a higher deployment target, and a future .NET workload could raise its baseline floor — but neither is something the binding forces.)

Related

  • Choosing .NET and Xcode — picking a pairing, global.json, xcode-select / DEVELOPER_DIR, and the .NET 11 path.
  • Version Coexistence — the other version axis: SwiftBindings.Runtime package-version ranges and why two bindings a minor apart can't coexist.
  • Getting Started — prerequisites for generating a binding.
  • Upgrading — bumping the SDK version in an existing binding.
  • NativeAOT Deployment — runtime embedding on device.

Clone this wiki locally