andreacremaschi / SpatialDBKit

An Objective-C lightweight spatial RDBMS (based on SQLite/SpatiaLite)
Other
73 stars 67 forks source link

Archive iOS project fails #15

Closed dcacenabes closed 4 years ago

dcacenabes commented 10 years ago

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_init

Thus I cannot generate an ipa to distribute.

andreacremaschi commented 10 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.

dcacenabes commented 10 years ago

Thank you, and sorry for opening an already open issue. I did not realized it was the same issue.

andreacremaschi commented 10 years ago

Don't worry, my fault: this should have been solved since long, or at least stated clearly somewhere in the documentation.

dcacenabes commented 10 years ago

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

andreacremaschi commented 10 years ago

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

scspijker commented 10 years ago

Cough same problem here since updating my pods :(

andreacremaschi commented 10 years ago

Eh. Sorry, this should be fixed upstream, in CocoaPods or in spatialite's pod spec.

burhanuddin353 commented 8 years ago

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.

burhanuddin353 commented 8 years ago

cocoapods issue it was.

https://github.com/andreacremaschi/SpatialDBKit/issues/26