GEOSwift: pod install fails on macOS High Sierra

I’m running macOS High Sierra 10.13.3, XCode 9.2 (9C40b), and cocoapods 1.4.0. Running ‘pod install’ for ‘GEOSwift’ yields the following error. It seems to be purely related to the SVN export. I did notice that the geos project has transitioned from SVN to GIT (https://trac.osgeo.org/geos/wiki/CodeRepository). Has nobody else encountered this? How can we get our wonderful GEOSwift back under High Sierra? TIA!!!

Installing geos (3.5.0)

[!] Error installing geos
[!] /usr/bin/svn export --non-interactive --trust-server-cert --force https://svn.osgeo.org/geos/tags/3.5.0 /var/folders/n2/5vdk92sj48qgnvyw00jx0q480000gn/T/d20180301-15895-1qd8777

A    /var/folders/n2/5vdk92sj48qgnvyw00jx0q480000gn/T/d20180301-15895-1qd8777
...
A    /var/folders/n2/5vdk92sj48qgnvyw00jx0q480000gn/T/d20180301-15895-1qd8777/include/geos/geom/MultiPolygon.h
svn: E175013: Access to '/geos/!svn/rvr/4086/tags/3.5.0/include/geos/geom/GeometryCollection.h' forbidden
svn: E200042: Additional errors:
svn: E175013: Access to '/geos/!svn/rvr/4086/tags/3.5.0/include/geos/geom/Envelope.h' forbidden
svn: E175013: Access to '/geos/!svn/rvr/4086/tags/3.5.0/include/geos/geom/GeometryFactory.h' forbidden
svn: E175013: Access to '/geos/!svn/rvr/4086/tags/3.5.0/include/geos/geom/GeometryList.h' forbidden
svn: E175013: Access to '/geos/!svn/rvr/4086/tags/3.5.0/include/geos/geom/util/ShortCircuitedGeometryVisitor.h' forbidden
svn: E175013: Access to '/geos/!svn/rvr/4086/tags/3.5.0/include/geos/geom/util/PointExtracter.h' forbidden


About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 60 (24 by maintainers)

Most upvoted comments

@ElnazTaqizadeh TL;DR This should work as is without problem. Of course you need YOUR_TARGET_NAME with actual target name.


source 'https://github.com/mojtabacazi/Specs.git'

inhibit_all_warnings!
use_frameworks!

target :YOUR_TARGET_NAME do
pod 'GEOSwift', :git => 'https://github.com/mojtabacazi/GEOSwift.git', :branch => 'develop'
end

@vfn Your podspec for geos is trying to build geos for all architecture which takes a long time and almost impossible to debug. Mine only runs the ./configure and let Xcode do the the heavy lifting.

Thanks a lot for your answer. It’s good now.

Hey guys, I had a similar problem with /bin/bash: line 2: alias: autoconf: not found

So, I was using the CocoaPods application, then tried the pod update command (which turns out calls into the application for the version of cocoapods)

I uninstalled the app, installed cocoapods as a gem, and then was able to successfully install and update the app.

This must be something about sub-shells created by the app and not having homebrew’s autoconf on the path.

So, again, my setup:

  • Install homebrew
  • brew install rbenv
  • Include eval "$(rbenv init -)" in .bash_profile
  • rbenv install 2.5.0
  • rbenv system 2.5.0
  • gem update --system
  • gem install cocoapods
  • pod update

@himi1 sure

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

source 'https://github.com/mojtabacazi/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'

# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
    
def core_pods 
    
    pod 'Alamofire'
    pod 'SwiftyJSON', :git => 'https://github.com/appsailor/SwiftyJSON.git', :branch => 'swift3'
    pod 'SWXMLHash'
    pod 'GoogleAnalytics'   
    pod 'GooglePlaces'
    pod 'GooglePlacePicker'
    pod 'GoogleMaps'
    pod 'Google/SignIn'
    pod 'FacebookLogin'
    pod 'SDWebImage/WebP'
    pod 'Firebase/Core'
    pod 'Firebase/Auth'
    pod 'Firebase/Messaging'
    pod 'SwiftWebViewProgress'
    pod 'FBAnnotationClusteringSwift', :git => 'https://github.com/ribl/FBAnnotationClusteringSwift.git'
    pod 'GEOSwift', :git => 'https://github.com/mojtabacazi/GEOSwift.git', :branch => 'develop'

end

target 'iOS-Core' do
    core_pods
end

target 'iOS-Core-beta' do
    core_pods
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '4.0'
        end
    end
end

@jwilson85 Following should solve your problem.

brew install automake autoconf libtool libxml2 pkg-config
brew link libxml2 

This did not work for me. when I included the source 'https://github.com/mojtabacazi/Specs.git' My other pods started failing

If I don’t include it the install hangs