Skip to content

feat: Add Swift Package Manager support for iOS and macOS - #511

Open
milhomem-tshirt wants to merge 2 commits into
SimformSolutionsPvtLtd:mainfrom
milhomem-tshirt:feat/spm-flutter-sdk-constraint
Open

feat: Add Swift Package Manager support for iOS and macOS#511
milhomem-tshirt wants to merge 2 commits into
SimformSolutionsPvtLtd:mainfrom
milhomem-tshirt:feat/spm-flutter-sdk-constraint

Conversation

@milhomem-tshirt

Copy link
Copy Markdown

Summary

  • Follow-up to feat: Add Swift Package Manager support for iOS and macOS #493 with the outstanding SDK constraint bump from review (flutter: ">=3.41.0", sdk: ^3.11.0). The FlutterFramework Swift package is only generated by Flutter 3.41+, so the previous >=3.24.0 constraint still fails SwiftPM resolution.
  • Carries the original SPM work from @vasu-nageshri-simform: plugin sources moved to an SPM-compatible layout, plus Package.swift for iOS and macOS with a FlutterFramework dependency.
  • This is a clone PR because we cannot push commits to feat/swift-package-manager-support on the original repo.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Minimum Flutter is now >=3.41.0 (Dart ^3.11.0) so SwiftPM can resolve FlutterFramework.

Related Issues

Closes #492 #485 #484
Supersedes #493 (same change plus the SDK bump requested on that PR)

Test plan

  • Confirm pubspec.yaml has flutter: ">=3.41.0" and sdk: ^3.11.0
  • On Flutter 3.41+, enable SwiftPM and build the example for iOS and macOS
  • Confirm CocoaPods still builds (podspec deployment target 13.0, no macOS Obj-C shim)

Made with Cursor

vasu-nageshri-simform and others added 2 commits June 18, 2026 14:55
Migrate plugin sources to SPM-compatible directory structure and add
Package.swift for iOS and macOS with FlutterFramework dependency.
The FlutterFramework Swift package is only generated by Flutter 3.41+,
so the previous >=3.24.0 constraint still fails SwiftPM resolution.

Co-authored-by: Cursor <cursoragent@cursor.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.

Missing Swift Package Manager (SPM) support + Future Flutter compatibility warning

2 participants