Skip to content

Fix Xcode 27 deprecation warning#384

Open
yonihemi wants to merge 2 commits into
weichsel:developmentfrom
yonihemi:fix/watchos_deprecation_warning
Open

Fix Xcode 27 deprecation warning#384
yonihemi wants to merge 2 commits into
weichsel:developmentfrom
yonihemi:fix/watchos_deprecation_warning

Conversation

@yonihemi

@yonihemi yonihemi commented Jul 7, 2026

Copy link
Copy Markdown

Fixes

When depending on ZIPFoundation in Xcode 27 beta, the compiler emits a warning:

SourcePackages/checkouts/ZIPFoundation/Package@swift-5.9.swift:23:61 'v4' is deprecated: watchOS 9.0 is the oldest supported version

Changes proposed in this PR

We see that v4 is indeed now marked deprecated for swift-tools-version:5.7, but that was not the case when Swift 5.9 was released, so a little bit of retconning happening here.

Since supportedPlatforms is actually used to restrict minimum SDK deployments, and all of Swift 6's supported Apple platforms are supported by ZIPFoundation 😍, I propose to add a new Package.swift variant for Swift >= 6:

  • without specifying supportedPlatforms, which will allow building on all Apple platforms
  • keeping swiftLanguageMode at v5 until Swift 6 support is ready.

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.

1 participant