Skip to content

build: Raise the minimum platforms to macOS 15 and its year's releases - #378

Merged
jeanmatthieu merged 2 commits into
rel/1.0.0from
fix/spm-raise-the-floor
Nov 28, 2026
Merged

jeanmatthieu merged 2 commits into
rel/1.0.0from
fix/spm-raise-the-floor

Conversation

@jeanmatthieu

Copy link
Copy Markdown
Contributor

Breaking change (VERSIONING.md: raising a platform minimum). Implements the policy promised when #57 was closed: "1.0.0 sets the minimum to macOS 15, with the matching iOS, tvOS, watchOS and visionOS releases".

Summary

 // Package.swift (and fuzz/Package.swift: macOS only)
 platforms: [
-    .macOS("13.0"),
-    .macCatalyst("16.0"),
-    .iOS("16.0"),
-    .watchOS("9.0"),
-    .tvOS("16.0"),
-    .visionOS("1.0"),
+    .macOS("15.0"),
+    .macCatalyst("18.0"),
+    .iOS("18.0"),
+    .watchOS("11.0"),
+    .tvOS("18.0"),
+    .visionOS("2.0"),
 ],
  • VERSIONING.md: a new Platforms section with the policy. The SDK supports the three newest macOS releases and the other platforms' releases from the year of the oldest one. The minimums stay fixed for the whole major version. A later raise ships only in a major release: it moves every Apple platform together, removes availability checks that become redundant, and is listed under breaking changes with a migration note.
  • Docs: README, quick start, AGENTS.md, a CHANGELOG entry under breaking changes, and a Platforms section plus summary row in the migration guide ("on macOS 13 or 14, stay on 0.12"). The generated docs were regenerated with weave. CLAUDE.md names no platform floor, so it is unchanged.
  • No behavior change: Sources/, Tests/, Examples/, conformance/, interop/ and fuzz/ contain no @available or #available checks for a platform version. The only two @available attributes mark deprecations. No new API is used.
  • fuzz/Package.swift: its macOS minimum is raised to match. SwiftPM won't build a package against a dependency whose minimum is higher than its own.
  • CI: nothing to change.
    • The pinned leg is Xcode 16.3 on macos-15.
    • apple-ios in scripts/ci/jobs doesn't pin a runtime. apple-platform.sh tests on the first simulator that xcodebuild -showdestinations offers for the scheme, and xcodebuild only offers simulators at or above the deployment target, now iOS 18.
    • With CI set, the job fails if no such simulator exists.

Evidence

  • swift build: passes on macOS.
  • swift test: Test run with 1404 tests in 142 suites passed.
  • swift scripts/weave.swift --check: docs are up to date.
  • swift package generate-documentation --target MCP --warnings-as-errors: passes.
  • xcodebuild -scheme mcp-swift-sdk-Package -showdestinations: every offered iOS Simulator meets the iOS 18 floor, so apple-platform.sh picks one that does.
  • Not run: the conformance and interop suites, and the Linux legs. No protocol behavior or transport code changed, and Linux ignores Apple platform minimums.

Merge Danger

Door: one-way once 1.0.0 is tagged. Until then it is two-way: revert the commit.

Blast Radius: consumers

Apps and packages that depend on MCP with a deployment target below macOS 15 / iOS 18 (or the matching tvOS, watchOS, visionOS and Mac Catalyst) stop resolving or building on 1.0.0. They must raise their minimums or stay on .upToNextMinor(from: "0.12.1"). Linux is unaffected.

AI assistance: written and opened by Claude at the author's request, for human review before merge.

@jeanmatthieu
jeanmatthieu requested a review from a team as a code owner November 26, 2026 17:35
1.0.0 requires macOS 15, Mac Catalyst 18, iOS 18, tvOS 18, watchOS 11
and visionOS 2, up from macOS 13, Mac Catalyst 16, iOS 16, tvOS 16,
watchOS 9 and visionOS 1. This is what the close comment of #57
promised. VERSIONING.md holds a platform raise for a major release, so
it lands before the tag or waits for 2.0.

VERSIONING.md gains a Platforms section with the policy: the three
newest macOS releases and the other platforms' releases of the same
year as the oldest of them, fixed for a whole major version. A later
raise ships in a major release only, moves every Apple platform
together, removes the availability checks it makes redundant, and is
listed under breaking changes with a migration note.

No behavior changes. The code has no @available or #available checks
for a platform version (the two @available attributes left mark
deprecations), and it uses no API that is new in these releases. The
fuzz package's macOS minimum follows the root manifest, since SwiftPM
refuses a dependency whose minimum is higher than the dependent's. CI
already meets the new minimums: the pinned leg is Xcode 16.3 on
macos-15, and apple-platform.sh tests on the first simulator
xcodebuild offers for the scheme, which is at or above the iOS 18
deployment target.

README, the quick start, AGENTS.md, CHANGELOG.md and the migration
guide name the new minimums; on macOS 13 or 14, stay on 0.12.

Assisted-by: Claude
"On macOS 13 or 14, stay on 0.12" in the README, quick start, CHANGELOG
and migration table read as a rule about the development Mac, and left
out iOS, Mac Catalyst, tvOS, watchOS and visionOS. They now say that
older deployment targets stay on 0.12; the README lists them.

The migration snippet's After line used .macOS(.v15) and .iOS(.v18),
which PackageDescription introduces in tools 6.0. A dependent package
can keep an older manifest while building MCP with a 6.1 toolchain, so
the snippet uses the string form, as Package.swift does, and notes the
tools version the constants need.

Assisted-by: Claude
@jeanmatthieu
jeanmatthieu force-pushed the fix/spm-raise-the-floor branch from eb6052f to a6d3508 Compare November 27, 2026 11:36
@jeanmatthieu
jeanmatthieu merged commit 76ee6ab into rel/1.0.0 Nov 28, 2026
14 checks passed
@jeanmatthieu
jeanmatthieu deleted the fix/spm-raise-the-floor branch November 28, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants