Unverified Commit 166c9bd4 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

[Backport release-25.11] doc/stdenv/platform-notes: update Darwin...

[Backport release-25.11] doc/stdenv/platform-notes: update Darwin documentation for SDK changes (#465902)
parents 18cdd725 367c040e
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -118,9 +118,10 @@ Check your package’s documentation (platform support or installation instructi
Generally, only the last SDK release for a major version is packaged.

| Xcode version | SDK version | Nixpkgs attribute            |
|--------------------|--------------------|-------------------------------|
|---------------|-------------|------------------------------|
| 15.0–15.4     | 14.4        | `apple-sdk_14` / `apple-sdk` |
| 16.0          | 15.0        | `apple-sdk_15`               |
| 26.0+         | 26.0+       | `apple-sdk_26`, etc          |


#### Darwin Default SDK versions {#sec-darwin-troubleshooting-darwin-defaults}
@@ -129,7 +130,7 @@ The current default version of the SDK and deployment target (minimum supported
Because of the ways that minimum version and SDK can be changed that are not visible to Nix, they should be treated as lower bounds.
If you need to parameterize over a specific version, create a function that takes the version as a parameter instead of relying on these attributes.

On macOS, the `darwinMinVersion` and `darwinSdkVersion` are always the same, and are currently set to 11.3.
On macOS, the `darwinMinVersion` is 14.0, and the `darwinSdkVersion` is 14.4.


#### `xcrun` cannot find a binary {#sec-darwin-troubleshooting-xcrun}