Giter Site home page Giter Site logo

Comments (6)

simolus3 avatar simolus3 commented on September 6, 2024 6

Perhaps it works if you use the standalone subspec of SQLite.swift? That one has a dependency on the sqlite3 pod so there is no difference in the way that package and sqlite3_flutter_libs are linking sqlite3.

from sqlite3.dart.

easazade avatar easazade commented on September 6, 2024 1

I'm having the same problem. have you found a workaround? @simolus3 @victj99

from sqlite3.dart.

simolus3 avatar simolus3 commented on September 6, 2024

So the problem is that SQLite.swift will also try to link sqlite3, but it doesn't use the sqlite3 pod for this and instead will always use the sqlite3 library from the system.
Since it also includes its own sqlite header, there are redefinitions when sqlite3_flutter_libs tries to actually compile sqlite3 into your application.

Unfortunately, I'm not experienced enough with Cocoapods to know how to fix this. I think you can override the SQLite.swift pod to not link sqlite3, and perhaps also exclude its sqlite3.h from being part of its source?

from sqlite3.dart.

easazade avatar easazade commented on September 6, 2024

writing this comment if you have the same problem as me and are desperate for a fix, maybe this works for you.
If you are using drift database package and using sqlite3_flutter_libs package only to making sqlite3 database to work on Android. maybe you can fork the repo and delete the iOS side of the plugin. that way iOS compiles successfully and Android app works as well.
here is my fork if you need it.
https://github.com/easazade/sqlite3.dart/tree/remove-ios

from sqlite3.dart.

tbfungeek avatar tbfungeek commented on September 6, 2024

I also encountered this problem. Is there any solution?

from sqlite3.dart.

tbfungeek avatar tbfungeek commented on September 6, 2024

Perhaps it works if you use the standalone subspec of SQLite.swift? That one has a dependency on the sqlite3 pod so there is no difference in the way that package and sqlite3_flutter_libs are linking sqlite3.

it really help me

from sqlite3.dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.