SpatialDBKit
SpatialDBKit copied to clipboard
SpatialDBKit podspec not validating anymore
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?
Any way I can help?
Any suggestion is welcome :+1:
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
?
Being tracked here: https://github.com/CocoaPods/CocoaPods/issues/2284
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.
Note: I am using Xcode 8.0 beta with Swift 3.0
@burhanuddin353 Did you get this working? Do you mind sharing your steps. I am very interested in this with Swift, thanks!
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.