Closed dcacenabes closed 4 years ago
Hi @dcacenabes, your issue is due to a bug in the .podspec definition. To fix this you should replace the row 87 in spatialite.c:
#include <spatialite/spatialite.h>
with:
#include <spatialite/spatialite/spatialite.h>
This is tracked here: https://github.com/andreacremaschi/SpatialDBKit/issues/12
Cheers, a.
Thank you, and sorry for opening an already open issue. I did not realized it was the same issue.
Don't worry, my fault: this should have been solved since long, or at least stated clearly somewhere in the documentation.
I'm afraid your suggestion fix the issue but adds a new one. I replaced row 87 in spatialite.c. The spatialite pod now builds fine, but SpatialDBKit pod fails to build. In SpatialDatabase.m I get the same errors for: Implicit declaration of function 'spatialite_cleanup' is invalid in C99 spatialite_init spatialite_version
I've fixed it by adding
#import <spatialite.h>
to SpatialDatabase.m
agh! ok, thank you for the heads up. Unfortunately I can't fix this until the other issue is unblocked. I'll keep this open to track the issue
Cough same problem here since updating my pods :(
Eh. Sorry, this should be fixed upstream, in CocoaPods or in spatialite's pod spec.
When I replace the row 87 in spatialite.c:
#include <spatialite/spatialite.h>
with:
#include <spatialite/spatialite/spatialite.h>
it throws this 'spatialite/spatialite.h' file not found.
cocoapods issue it was.
The app builds and runs fine on simulator or device, but when I try to archive the app I get:
Implicit declaration of function 'virtualshape_extension_init' is invalid in C99
in the Pods-spatialite project. And the same goes for virtualdbf_extension_init virtualtext_extension_init virtualnetwork_extension_init mbrcache_extension_init virtualfdo_extension_init virtual_spatialindex_extension_initThus I cannot generate an ipa to distribute.