SpatialDBKit icon indicating copy to clipboard operation
SpatialDBKit copied to clipboard

SpatialDBKit podspec not validating anymore

Open andreacremaschi opened this issue 10 years ago • 7 comments

At some point something has changed in the way cocoa pods manages header search paths for projects. The result is that spatialite doesn't validate anymore because of an header overlapping (i.e. "spatialite/spatialite.h" and "spatialite/spatialite/spatialite.h" if I am not wrong). How can this be fixed? One solution could be to create a different spatialite pod with a different name (es. "spatialite-pod", "spatialite-ios"). This would disambiguate the header search path. Maybe cocoa pods can handle these situation in a better way?

andreacremaschi avatar May 27 '14 10:05 andreacremaschi

Any way I can help?

scspijker avatar May 27 '14 11:05 scspijker

Any suggestion is welcome :+1:

andreacremaschi avatar May 27 '14 12:05 andreacremaschi

Why would header overlapping be invalid? Isn't this an error in the Travis build system @ Cocoapods? I think you should post this issue in https://github.com/CocoaPods/Specs/issues

?

scspijker avatar May 27 '14 14:05 scspijker

Being tracked here: https://github.com/CocoaPods/CocoaPods/issues/2284

andreacremaschi avatar Jun 30 '14 14:06 andreacremaschi

When I replace the row 87 in spatialite.c:

#include <spatialite/spatialite.h>

with:

#include <spatialite/spatialite/spatialite.h>

it throws this 'spatialite/spatialite/spatialite.h' file not found.

Also I cannot find spatialite folder inside the main spatialite folder. screen shot 2016-08-30 at 10 56 38 am

Note: I am using Xcode 8.0 beta with Swift 3.0

burhanuddin353 avatar Aug 30 '16 06:08 burhanuddin353

@burhanuddin353 Did you get this working? Do you mind sharing your steps. I am very interested in this with Swift, thanks!

nitrag avatar Nov 18 '16 20:11 nitrag

Well the steps are same as mentioned in README.md. Just do not use 'use_frameworks!' in your pod file.

For libraries which needs 'use_frameworks' in pod file, use carthage for those libraries.

The only thing extra in swift is that you need to make a bridging header file and import SpatialDBKit in it.

Let me know if you need more clarity.

burhanuddin353 avatar Nov 19 '16 08:11 burhanuddin353