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

2.4.1 error when compiling for iOS #223

Closed
ghost opened this issue Apr 2, 2024 · 4 comments
Closed

2.4.1 error when compiling for iOS #223

ghost opened this issue Apr 2, 2024 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 2, 2024

I get the following error when compiling for
Error (Xcode): ../../../.pub-cache/hosted/pub.dev/sqlite3-2.4.1/lib/src/ffi/bindings.dart:341:14: Error: The operator '+' isn't defined for the class 'Pointer'.

My temporary solution is to revert back to 2.4.0

@qwertylolman
Copy link

i'm only have transitive dependency on sqlite package and still got this error...

@ghost
Copy link
Author

ghost commented Apr 2, 2024

i'm only have transitive dependency on sqlite package and still got this error...

Same here, however if you add

sqlite3: '2.4.0'

in your main application pubspec.yaml file it should override any packages allowing for higher versions to be pulled as long as 2.4.0 is compatible

even if you never actually reference the package directly in your main application and only through transitive dependencies

@sebastianolaru3008
Copy link

I was able to reproduce this bug also by running on the flutter test command on a project that uses sqlite3 as transitive dependency.

@simolus3
Copy link
Owner

simolus3 commented Apr 2, 2024

Thank you for the report, and apologies for the inconvenience. Version 2.4.1 requires Dart 3.3 or later, but has Dart 3.2 as a lower bound in its pubspec. If you use that version with an older Dart/Flutter SDK, you'll see this error.

Continuing to use version 2.4.0 is fine, I have retracted version 2.4.1 from pub.dev and published 2.4.1+1 which has the correct SDK bound in its pubspec.

@simolus3 simolus3 closed this as completed Apr 2, 2024
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

3 participants