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

fatal error: 'geos/platform.h' file not found #132

Closed
nylemusgrave opened this issue Jan 10, 2019 · 7 comments
Closed

fatal error: 'geos/platform.h' file not found #132

nylemusgrave opened this issue Jan 10, 2019 · 7 comments

Comments

@nylemusgrave
Copy link

@macdrevx I'm getting the platform.h file not found error again in my build server. I can't find anything that has changed on our side...did something perhaps change with the repo??

/Users/vsts/agent/2.144.0/work/1/s/LandDB_iOS_Mobile/Pods/geos/geos/include/geos/geom/Coordinate.h:19:10: fatal error: 'geos/platform.h' file not found
#include <geos/platform.h> // for DoubleNotANumber
         ^~~~~~~~~~~~~~~~~
1 error generated.

** ARCHIVE FAILED **

Our build server rebuilds everything from scratch each time, we run the commands below to ensure that any cache is cleared which had caused the issue before...but now the scripts just never seem to install platform.h ever.
logs_876 (1).zip

brew install autoconf automake libtool

pod cache list geos
pod cache clean geos --all

I run the commands above every build, was working but now I'm getting the error when archiving even tho there is no cache found to clear.

@macdrevx
Copy link
Member

Hi @nylemusgrave thanks for opening a new issue. I’d like to gather some more information to help us identify what’s going wrong. Can you please share your Podfile.lock and the output of running pod install --verbose on your build server? Also, which version of CocoaPods are you using?

Sent with GitHawk

@nylemusgrave
Copy link
Author

@macdrevx

Podlock and Log of the verbose insall attached.

podlock.txt
podInstallVerbose.txt

@macdrevx
Copy link
Member

Thanks for that extra info. It doesn't quite tell me everything I need to know to identify the problem, so can you try another diagnostic test and share the results? Run this on your build server after the brew install step and share the output here so we can look for errors:

git clone https://github.com/GEOSwift/geos.git
cd geos
sh prepare.sh

@nylemusgrave
Copy link
Author

@macdrevx Ended up being an issue with brew, it was throwing an error on the brew install where it was having an issue updating the version.

Adding brew update prior to the install call fixed it.

@macdrevx
Copy link
Member

macdrevx commented Jan 12, 2019

@nylemusgrave glad you were able to get it working again!

Sent with GitHawk

@sauvikated
Copy link
Contributor

andreacremaschi/SpatialDBKit#24 (comment)

@dandyweng
Copy link

pod "GEOSwift", "= 3.0.1" works! Guess I'll have to settle with this old version for now.

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