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

'sqlite3.h' file not found #13

Open
diachedelic opened this issue Mar 24, 2020 · 5 comments · May be fixed by #16
Open

'sqlite3.h' file not found #13

diachedelic opened this issue Mar 24, 2020 · 5 comments · May be fixed by #16

Comments

@diachedelic
Copy link

Xcode 11.3.1 errors when I try to build this plugin, even though Other Linker Flags contains -lsqlite3. I am using capacitor, which includes a compatibility layer for Cordova plugins.

I have tried adding libsqlite.tbd:
image

And setting CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES:
image

But neither attempt has worked. However, i did fix it by swapping

-#import "sqlite3.h"
+#import <sqlite3.h>

in both MAURSQLiteLocationDAO.m and MAURSQLiteConfigurationDAO.m.

Would you consider accepting a pull request making this change?

@diachedelic
Copy link
Author

Working solution came from here

@diachedelic diachedelic linked a pull request Apr 28, 2020 that will close this issue
@HarelM
Copy link

HarelM commented Jul 31, 2022

@diachedelic thanks for the info!
I'm maintaining a fork of this plugin and just stubbled across this issue when migrating my app to capacitor.
I'd love to have this in my fork.
Feel free to send a PR if this is still relevant for you.
Unfortunately, this plugin is no longer maintained as far as I can tell...
https://github.com/HaylLtd/cordova-background-geolocation-plugin

@diachedelic
Copy link
Author

It's a two line change, it doesn't seem worth a PR.

@HarelM
Copy link

HarelM commented Aug 1, 2022

Yea, I created a branch for it and will release a version shortly...

@HarelM
Copy link

HarelM commented Aug 1, 2022

Version 2.0.5 now has this. Thanks for the info!

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

Successfully merging a pull request may close this issue.

2 participants