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

Archive iOS project fails #15

Closed
dcacenabes opened this issue Jun 30, 2014 · 9 comments
Closed

Archive iOS project fails #15

dcacenabes opened this issue Jun 30, 2014 · 9 comments

Comments

@dcacenabes
Copy link

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
Copy link
Owner

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:
#12

Cheers,
a.

@dcacenabes
Copy link
Author

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

@andreacremaschi
Copy link
Owner

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

@dcacenabes dcacenabes reopened this Jun 30, 2014
@dcacenabes
Copy link
Author

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
Copy link
Owner

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
Copy link

Cough same problem here since updating my pods :(

@andreacremaschi
Copy link
Owner

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

@burhanuddin353
Copy link

burhanuddin353 commented Aug 30, 2016

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
Copy link

cocoapods issue it was.

#26

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

4 participants