Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feedback]: Add Swift Package Manager support #971

Open
1 task done
loic-sharma opened this issue Nov 9, 2024 · 2 comments
Open
1 task done

[Feedback]: Add Swift Package Manager support #971

loic-sharma opened this issue Nov 9, 2024 · 2 comments

Comments

@loic-sharma
Copy link

loic-sharma commented Nov 9, 2024

What's on your mind?

Hello,

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

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 ping me at @loic-sharma, 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.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jennantilla
Copy link
Contributor

Thank you for reaching out about this! We will keep this in mind and prioritize this as demand increases since Flutter will continue to support CocoaPods.

@loic-sharma
Copy link
Author

loic-sharma commented Dec 17, 2024

... since Flutter will continue to support CocoaPods

FYI, Flutter plans to remove CocoaPods support as soon as possible.

Projects that have a mixture of CocoaPods and SwiftPM plugins should work but might have compilation errors. Your customers are more likely to run into these errors if your plugin only supports CocoaPods.

We'd recommend plugins add SwiftPM support sooner rather than later 😄

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

No branches or pull requests

2 participants