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

Trying to use this library with Sqlite.swift #93

Closed
humaidk2 opened this issue May 6, 2024 · 4 comments
Closed

Trying to use this library with Sqlite.swift #93

humaidk2 opened this issue May 6, 2024 · 4 comments

Comments

@humaidk2
Copy link

humaidk2 commented May 6, 2024

Hi,

When I try to build this library with sqlite.swift

It fails on ci, with a bunch of errors on redefinition of sqlite3

fix error: redefinition of 'sqlite3_mutex_methods'

I have updated to the latest version of both op-sqlite and sqlite.swift
and added the following to my package.json
"op-sqlite": { "iosSqlite": false }

Any ideas on how to fix this issue would be appreciated. I really want the benefits of c++ op-sqlite
and the cleanliness of sqlite.swift in my ios modules

@ospfranco
Copy link
Contributor

They are both trying to compile and import sqlite, you will have to figure out yourself how to exclude one from the compilation process, but I don't think it will be possible since both need to include the headers during compilation.

You should better ask in StackOverflow, nothing wrong with this library.

@humaidk2
Copy link
Author

humaidk2 commented May 6, 2024

Thanks for quick response,

will post my findings if I do

@humaidk2 humaidk2 closed this as completed May 6, 2024
@humaidk2
Copy link
Author

humaidk2 commented May 6, 2024

Fixed
Someone in sqlite.dart had similar issue and fixed it by installing sqlite.swift as a standalone version sqlite dart

I updated my podfile in a similar fashion and it seems to fix the issue
`
pod 'SQLite.swift/standalone', '~> 0.15.3'

pod 'sqlite3', :modular_headers => true
`

@ospfranco
Copy link
Contributor

Nice!

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

2 participants