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

Could not build Objective-C module 'SQLite3' #3207

Open
psikosen opened this issue Sep 8, 2024 · 2 comments
Open

Could not build Objective-C module 'SQLite3' #3207

psikosen opened this issue Sep 8, 2024 · 2 comments

Comments

@psikosen
Copy link

psikosen commented Sep 8, 2024

Describe the bug
When trying to build for iOS `flutter build iOS

Redefinition of 'sqlite3_file
/Users/x/StudioProjects/app_name/ios/Pods/sqlite3/sqlite-src-3460100/sqlite3.h:731:8 Redefinition of 'sqlite3_file'
/Users/x/StudioProjects/app_name/ios/Pods/sqlite3/sqlite-src-3460100/sqlite3.h:837:8 Redefinition of 'sqlite3_io_methods
```

Libs
```
 drift: ^2.20.0
  sqlite3_flutter_libs: ^0.5.0
  drift_flutter: ^0.2.0

dev_dependencies:
  build_runner: ^2.4.12
  drift_dev: ^2.20.1

```
Anyone ran into a solution for this ? I tried a few things such as : Pod file
Getting rid of sqlite3 lib(flutter)
` pod 'SQLite.swift/standalone'
  #pod 'sqlite3', '~> 3.46.0'
  #pod 'sqlite3', '~> 3.35'
  #pod 'sqlite3', :modular_headers => true`
@dickermoshe
Copy link
Collaborator

sqlite3_flutter_libs should be removed. drift_flutter includes it automatically. I'm assuming there is some clashing going on.

@simolus3
Copy link
Owner

simolus3 commented Sep 9, 2024

I don't think that's it, drift_flutter simply depends on sqlite3_flutter_libs.

My best guess is that there's another dependency also linking sqlite3, does adding this snippet fix anything?

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