Skip to content

Add Swift Package Manager support #40

Closed

Description

@abdallahshaban557

Hello,

Flutter is migrating to Swift Package Manager. Please add Swift Package Manager support to your plugin.

SwiftPM will be the default for all Flutter apps in the next stable release (3.44). To ensure your plugin remains compatible and prevents build failures for your users, please migrate to SwiftPM

Flutter will eventually deprecate and then remove support for CocoaPods. Adding Swift Package Manager support future-proofs your plugins.

How to add Swift Package Manager support to your plugins

You can find the migration guide here: https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors#how-to-add-swift-package-manager-support-to-an-existing-flutter-plugin

If you run into issues or have questions, please reach out to the Flutter team. You can send a message to the #hackers-ios channel on Flutter's discord or open a GitHub issue.

Thank you for your wonderful contributions to the Flutter ecosystem!

Why is Flutter migrating to Swift Package Manager?

CocoaPods is now in maintenance mode.

Swift Package Manager support is one of Flutter's most requested features: flutter#33850.

Flutter's Swift Package Manager integration has several benefits:

  1. Access to the Swift package ecosystem. Flutter plugins can use the growing ecosystem of Swift packages.
  2. Simplifies Flutter installation. Swift Package Manager is bundled with Xcode. In the future, you won't need to install Ruby and CocoaPods to target iOS or macOS.

Activity

  1. yanncabral commented on Mar 26, 2026

    @yanncabral
    Owner

    I'm working on this.

  2. abdallahshaban557 commented on Mar 26, 2026

    @abdallahshaban557
    Author

    perfect! thank you @yanncabral !

  3. amrgetment commented on May 19, 2026

    @amrgetment

    This warning is currently shown on Flutter 3.44.0 and is expected to become an error in the first Flutter release after 3.44.0.

    Flutter Swift Package Manager warning

  4. yanncabral commented on May 26, 2026

    @yanncabral
    Owner

    Thanks for reporting this and for the patience here.

    Swift Package Manager support has now been merged in #41 and is included in the upcoming 0.5.0 release. The PR also added macOS CI coverage that builds the iOS example with Flutter's SPM integration enabled:

    flutter config --enable-swift-package-manager
    flutter build ios --no-codesign

    Could you please test with open_settings_plus 0.5.0 once it is available on pub.dev and share feedback here if you still see any SPM/iOS build issues?

    If you want to test before the pub.dev release is live, you can temporarily point your dependency to the main branch of this repository.

  5. self-assigned this
    on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions