Skip to content

fix(share_plus): raise Apple platform minimums in SPM manifests to match FlutterFramework#3923

Merged
vbuberen merged 1 commit into
fluttercommunity:mainfrom
radomir9720:fix/share_plus-spm-platform-minimum
Jul 8, 2026
Merged

fix(share_plus): raise Apple platform minimums in SPM manifests to match FlutterFramework#3923
vbuberen merged 1 commit into
fluttercommunity:mainfrom
radomir9720:fix/share_plus-spm-platform-minimum

Conversation

@radomir9720

Copy link
Copy Markdown
Contributor

Description

share_plus declares a Swift Package Manager dependency on FlutterFramework (which requires iOS 13.0 / macOS 10.15), but its Package.swift still declares 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 this plugin 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 raises the SPM platform minimums to iOS 13.0 / macOS 10.15, matching FlutterFramework, and bumps the example app deployment targets so the example keeps building. This mirrors the fix already applied to device_info_plus in #3891.

Changes

  • ios/share_plus/Package.swift: .iOS("12.0").iOS("13.0").
  • macos/share_plus/Package.swift: .macOS("10.14").macOS("10.15").
  • Example macOS MACOSX_DEPLOYMENT_TARGET 10.1410.15.

Podspecs, CHANGELOG.md and pubspec.yaml versions are intentionally left unchanged (per CONTRIBUTING §5.3).

…tch FlutterFramework

share_plus declares a Swift Package Manager dependency on FlutterFramework (which
requires iOS 13.0 / macOS 10.15) but still declares lower platform minimums
(iOS 12.0 / macOS 10.14) in its Package.swift. SwiftPM 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
example app deployment targets accordingly. Mirrors the fix already applied
to device_info_plus in fluttercommunity#3891.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vbuberen vbuberen merged commit 949e771 into fluttercommunity:main Jul 8, 2026
15 of 21 checks passed
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