[Request]: Add formal support for Swift Package Manager (SPM)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- build-system, mobile
Research direction
Start with the referenced GeneratedPluginRegistrant.swift import failure, inspect the connectivity_plus Darwin source layout, and check whether a Package.swift exists. Test with Flutter's --enable-swift-package-manager configuration and confirm the plugin module is found without CocoaPods; done means the iOS/macOS sources are recognized as a standalone SPM module and the import succeeds.
Written by the indexing model from the issue text.
Description
Plugin
connectivity_plus
Use case
I am migrating my Flutter project to use the new Swift Package Manager (SPM) feature (flutter config --enable-swift-package-manager). However, when SPM is enabled, the build fails because the native iOS module is not found.
The error occurs in GeneratedPluginRegistrant.swift:
Module 'connectivity_plus' not found
I have confirmed that disabling SPM and reverting to CocoaPods fixes the issue, but I would like to use SPM as it is becoming the standard for Flutter iOS development.
Proposal
Please update connectivity_plus to be fully compatible with Swift Package Manager. This involves:
Adding a valid Package.swift if missing.
Ensuring the Darwin (iOS/macOS) source files are structured to be recognized as a standalone module by Xcode when fetched via SPM.
Verifying that GeneratedPluginRegistrant can import the module correctly without CocoaPods header maps.
- Dominant language
- Dart
- Stars
- 1.9k
- Forks
- 1.3k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 16
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fluttercommunity/plus_plugins
-
[Bug]: (share_plus) iOS drops the subject when sharing a uriPossibly taken A pull request linked to this issue is open or already merged. Openbug triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
fluttercommunity/plus_plugins#3994 · 1 comment ·
Maintainers usually reply within 1 day
-
[package_info_plus]: Use Flutter's compile-time build name/number on web instead of version.jsonPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
fluttercommunity/plus_plugins#3989 ·
Maintainers usually reply within 1 day
-
enhancement triage
Difficulty 4/5 3-5 days Newbie friendliness 55/100
fluttercommunity/plus_plugins#3976 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
fluttercommunity/plus_plugins#3974 · 1 reaction ·
Maintainers usually reply within 1 day
-
enhancement triage
Difficulty 5/5 Over a week Newbie friendliness 48/100
fluttercommunity/plus_plugins#3973 ·
Maintainers usually reply within 1 day
All issues in fluttercommunity/plus_plugins
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Cancelling a response stream subscription leaves the adapter response subscribedPossibly taken @kaluli123123 claimed this 1 day ago. Openh: need triage s: bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lollipopkit/flutter_server_box#1640 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openfoodfacts/smooth-app#7821 ·
Maintainers usually reply within 1 day