-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Compile]: Swift Compiler Error (Xcode): Instance member 'connectivityProvider' cannot be used on type 'ConnectivityPlusPlugin' #3355
Comments
FYI, When tried building with |
Is per chance your app project still in obj-c and not swift? https://github.com/fluttercommunity/plus_plugins/pull/3173/files#r1713480016 |
Mmmhh I cannot reproduce it either with an ios objc project, I did the following:
Compilation worked:
Same result when creating a swift project. Can you do the same and see if it builds for you? |
I got similar issue with
However, this problem does not occur in This is
And the project also has a swift code section like this:
|
Do you see this error in debug builds or only release builds? The only change in 6.1.0 is that it deleted the objc plugin definition, which is not clear for me if it was still necessary: https://github.com/fluttercommunity/plus_plugins/pull/3173/files Is your project somehow an old codebase? |
@miquelbeltran Thank you for your quick reply. |
I think the issue is a combination of old(ish) Flutter native codebase and removing the objc definition, indeed. A newly created Flutter project with objc doesn't have this issue. A possible solution can be to revert part of the changes in #3173 but keeping the Swift package support. The problem is that I cannot reproduce the issue on my side, so I'd love if someone who has the problem can try this somehow and submit a PR. |
Thank you for your reply. |
Operating System
macOS Sonoma version 14.6.1
Plugin
connectivity_plus
Version
6.1.0
Flutter SDK
3.24.3
Compilation command
fvm flutter run
Dart Dependencies
No response
Native dependencies
No response
Compilation Error
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: