andreacremaschi / SpatialDBKit

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

SpatialDBKit podspec not validating anymore #12

Open andreacremaschi opened 10 years ago

andreacremaschi commented 10 years ago

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?

scspijker commented 10 years ago

Any way I can help?

andreacremaschi commented 10 years ago

Any suggestion is welcome :+1:

scspijker commented 10 years ago

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

?

andreacremaschi commented 10 years ago

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

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/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

nitrag commented 7 years ago

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

burhanuddin353 commented 7 years ago

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.