FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
124 stars 23 forks source link

Error (Xcode): Plugin pointer_interceptor #3601

Closed ozan-celebi closed 1 month ago

ozan-celebi commented 2 months ago

Can we access your project?

Current Behavior

After exporting the code to my Mac directory I run the flutter project and receive the following error on the Terminal.

Could not build the precompiled application for the device. Error (Xcode): Plugin pointer_interceptor:ios provides an implementation for pointer_interceptor_platform_interface and also references a default implementation for pointer_interceptor_ios, which is currently not supported. Ask the maintainers of pointer_interceptor to either remove the implementation via implements: pointer_interceptor_platform_interface or avoid referencing a default implementation via platforms: ios: default_package: pointer_interceptor_ios.

Error launching application on Ozan’s iPhone.

Expected Behavior

This makes the build fail and I cant run on a physical device when I download the code. I have tried to edit the pubspec.yaml and remove the plugin pointer_interceptor from the dependency but that didnt help one I ran the project again.

However, The app can run on a physical device when doing a Local Run from the FF desktop apr for Mac.

Steps to Reproduce

Export the project. flutter run -d "(a real device)". The compiler exits.

Reproducible from Blank

Bug Report Code (Required)

N/A

Visual documentation

image

Environment

- FlutterFlow version: FlutterFlow v4.1.82
- Platform: iOS
- Browser name and version: N/A
- Operating system and version affected: N/A

Additional Information

Can you please provide a solution on how to avoid this error? I couldn't find a solution online.

Alezanello commented 2 months ago

Hello!!

I’m sorry to hear that you’re experiencing this issue. To help us take a deeper look, could you please share a Bug Report Code from your project so we can verify that the dependencies are correctly set?

You can generate the Bug Report Code by right-clicking on any widget in the Widget Tree and selecting "Get Bug Report Code" from the dialog that appears.

Thank you!

image.png
Doopin commented 2 months ago

I have this same issue since more than 5 days. It started when I upgraded to Xcode 15.4

Plugin pointer_interceptor:ios provides an implementation for pointer_interceptor_platform_interface and also references a default implementation for pointer_interceptor_ios, which is currently not supported. Ask the maintainers of pointer_interceptor to either remove the implementation via implements: pointer_interceptor_platform_interface or avoid referencing a default implementation via platforms: ios: default_package: pointer_interceptor_ios.

image

I have even tried to manually removed every package that references pointer_interceptor and even removed pointer_interceptor: 0.10.1 itself.

No chance! Am stuck and no way to release my latest changes

ozan-celebi commented 2 months ago

Hello,

The issue isn't related to a bug in a widget. I think its related to the pubspec.yaml file that comes when exporting the code for the project.

However, I am providing a Bug Report code for the Home Page of my project below:

ITEeysmBz4dNpbxI17XxbvlGrwMwJ0QlUIInj+0bWRMhfJSoEIkUZ+ClZRBLYteDeFFbe1SWikYFpc7eis71NcI4NQmsRpRRwoRXQTzLUTihR8mmO7qKQnQlO+lTI0C70LTYoSYmOfV2S3g5w02MAvCdG3qCf9qOYwx5e6fDbOY=

ozan-celebi commented 2 months ago

@Doopin At least Im not the only one then :)

hepnn commented 2 months ago

Hi, I also had this issue, seems the newest version of pointer_interceptor caused this, try overriding it for now, while it's not fixed. fyi this is not a FlutterFlow specific issue.

dependency_overrides:
  pointer_interceptor: ^0.10.1+1

Alternatively you can downgrade flutter build version from 3.24

Doopin commented 2 months ago

@hepnn your answer has saved me. THank you alot. This below was enough to fix the issue:

dependency_overrides: pointer_interceptor: ^0.10.1+1

Alezanello commented 2 months ago

Hello again!

Please keep in mind that FlutterFlow currently operates on Flutter v3.22.2. If you’re using a later version locally, such as v3.24, it could lead to several dependency issues.

cyberlion-ops commented 2 months ago

whats the solution for this ? . i disagree with @hepnn it is a flutterflow issue as i wanted to deploy my project i get an error related to vm_service and if move that to the dependency_overides it gives the errors mentioned above and get a message about the flutter version not being up to date. you can check the issue mentioned by @Alezanello for more details. now i am just stuck not being able to publish my app to the appstore.is there an actual solution because this is definitely a flutterflow issue, i had exported and published my project multiple times without this issue this issue is new which might be related to one of flutterflow updates.

hepnn commented 2 months ago

whats the solution for this ? . i disagree with @hepnn it is a flutterflow issue as i wanted to deploy my project i get an error related to vm_service and if move that to the dependency_overides it gives the errors mentioned above and get a message about the flutter version not being up to date. you can check the issue mentioned by @Alezanello for more details. now i am just stuck not being able to publish my app to the appstore.is there an actual solution because this is definitely a flutterflow issue, i had exported and published my project multiple times without this issue this issue is new which might be related to one of flutterflow updates.

It is related to the newest version of pointer_interceptor, which got released alongside of flutter version 3.14. pointer_interceptor is a transitive dependency which got automatically updated running flutter pub get, so because you are using an older version than 3.14 and pointer_interceptors newest version is made for 3.14, you get this error

cyberlion-ops commented 2 months ago

@hepnn thanks for the reply. doesn't flutterflow uses flutter version 3.22.2. i even tried moving the pointer_interceptor to the dependency_overrides i still get a different issue with this error lib/edit_listing_page/edit_listing_page_widget.dart:485:67: Error: The argument type 'CarouselController' can't be assigned to the parameter type 'CarouselSliderController?'. which i don't know how to even fix that. which seems to me like it's definitely a flutterflow issue as that is something done in flutterflow with no errors or modification. maybe chip in on this @Alezanello

andrewjneumann commented 2 months ago

whats the solution for this ? . i disagree with @hepnn it is a flutterflow issue as i wanted to deploy my project i get an error related to vm_service and if move that to the dependency_overides it gives the errors mentioned above and get a message about the flutter version not being up to date. you can check the issue mentioned by @Alezanello for more details. now i am just stuck not being able to publish my app to the appstore.is there an actual solution because this is definitely a flutterflow issue, i had exported and published my project multiple times without this issue this issue is new which might be related to one of flutterflow updates.

I added to my pubsec.yaml and it fixed it dependency_overrides: vm_service: ^14.2.4

fabienbranchel commented 2 months ago

Not using to FlutterFlow at all but it's the only issue I found on the subject.

In a context of update all dependencies of my project, delete pubspec.lock then execute flutter pub get did the trick for me.

Alezanello commented 1 month ago

Hi there!

I wanted to check in and see if this issue has been resolved with the latest updates?

cristaloleg commented 1 month ago

Have subscribed to this thread few days ago 'cause had the same problem. Downgrade to v3.22.2 works perfectly.

Alezanello commented 1 month ago

Downgrading to version 3.22.2 should be your go-to solution until FlutterFlow upgrades to 3.24 or a newer version. Make sure to always run or compile using the same version that we have locally for consistency.

image.png
Alezanello commented 1 month ago

Closing this issue since we haven't heard back from you. If you are still facing the problem please submit a new issue. Have a great day!