Skip to content

fix: raise Apple platform minimums in SPM manifests to match FlutterFramework#3917

Open
radomir9720 wants to merge 1 commit into
fluttercommunity:mainfrom
radomir9720:fix/spm-apple-platform-minimums
Open

fix: raise Apple platform minimums in SPM manifests to match FlutterFramework#3917
radomir9720 wants to merge 1 commit into
fluttercommunity:mainfrom
radomir9720:fix/spm-apple-platform-minimums

Conversation

@radomir9720

Copy link
Copy Markdown

Description

battery_plus, connectivity_plus, network_info_plus, package_info_plus and share_plus declare a Swift Package Manager dependency on FlutterFramework (which requires iOS 13.0 / macOS 10.15), but their Package.swift files still declare lower platform minimums (iOS 12.0 / macOS 10.14).

SwiftPM refuses to resolve this, because a package cannot support a lower platform version than a package it depends on. Building an app that consumes one of these plugins via SPM fails with:

error: The package product 'FlutterFramework' requires minimum platform version 13.0
for the iOS platform, but this target supports 12.0 (in target 'share_plus' from project 'share_plus')

This PR raises the SPM platform minimums to iOS 13.0 / macOS 10.15 for the affected packages, and bumps the corresponding example apps' deployment targets so they keep building against the raised minimums.

This mirrors the fix already applied to device_info_plus in #3891. Podspecs are intentionally left unchanged, matching that precedent (SwiftPM enforces the cross-package platform constraint; CocoaPods does not).

Changes

Package.swift platform minimums (iOS 12.013.0, macOS 10.1410.15):

  • battery_plus
  • connectivity_plus
  • network_info_plus
  • package_info_plus
  • share_plus

Example app deployment targets bumped to match:

  • connectivity_plus example iOS (IPHONEOS_DEPLOYMENT_TARGET 12.013.0)
  • all five example macOS apps (MACOSX_DEPLOYMENT_TARGET 10.1410.15)

Checklist

…ramework

battery_plus, connectivity_plus, network_info_plus, package_info_plus and
share_plus declare a Swift Package Manager dependency on FlutterFramework
(which requires iOS 13.0 / macOS 10.15) but still declare lower platform
minimums (iOS 12.0 / macOS 10.14) in their Package.swift. SPM refuses to
resolve this, because a package cannot support a lower platform version
than a package it depends on, failing the build with:

  The package product 'FlutterFramework' requires minimum platform version
  13.0 for the iOS platform, but this target supports 12.0

Raise the SPM platform minimums to iOS 13.0 / macOS 10.15 and bump the
affected example apps' deployment targets accordingly. This mirrors the
fix already applied to device_info_plus in fluttercommunity#3891. Podspecs are left
unchanged, matching that precedent.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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