-
Notifications
You must be signed in to change notification settings - Fork 171
-
Notifications
You must be signed in to change notification settings - Fork 171
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
pod install fails on macOS High Sierra #78
Comments
Same issue here. I was thinking about creating a new podspec and change the source to the git repo. |
@biomiker / @mojtabacazi would you guys like to fix this issue and then create a pull request with the working code? |
@vfn I don't think it's fixable here, it seems like pod deosn't like SVN repos. |
@mojtabacazi you can fix the geos pod and make it point to the git repo. |
I wouldn't even know where to start. :( For what it's worth, I feel like a workaround should be possible since the pod install works on older versions of macOS. And I don't even think it fails on every High Sierra install. But I don't really know where to start with that either. Definitely in need of help from experienced contributors/developers. Please? |
This is a problem with SVN 1.9. SVN 1.7 works without problem |
I created podspecs for
Note: GEOSwift still won't work because it explicitly asking for |
Thanks @mojtabacazi ... just curious, it looks like the git does have a 3.5.0 tag so why can't that be used? Any suggestions on how to install GEOSwift under High Sierra? |
@biomiker Like I said if I use 3.5.0, cocoapod will complain about duplicate podspec. Not sure how I can tell it to use one vs the other. |
Thanks, I should have gotten that from your previous comment. So possible solutions at this point are:
Is that about right? Would one possible workaround be to (perhaps continually) update our local clone of the pod master repo? |
Okay so modifying the local clone works! I'm not sure if this is a good idea or not, but at least it allows the pod to install. The change is actually very simple:
|
I did these changes, but keep getting this error:
|
I have pushed a new version of |
still returns a similar error as @biomiker mentioned.
|
@ElnazTaqizadeh can you copy your PodFile here? |
|
@ElnazTaqizadeh TL;DR This should work as is without problem. Of course you need YOUR_TARGET_NAME with actual target name.
@vfn Your podspec for |
This did not work for me. when I included the If I don't include it the install hangs |
@jwilson85 Copy your podfile here pls Do you have |
So I should put both |
I tried to add both to the pod file and ran a pod install. |
here is my current pod file # Uncomment this line to define a global platform for your project
platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/mojtabacazi/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 'GEOSwift', :git => 'https://github.com/mojtabacazi/GEOSwift.git', :branch => 'develop'
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'
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'] = '3.0'
end
end
end
|
@jwilson85 Your podfile looks fine, tho I had sources in reversed order, mine first. [Update] I noticed [Update 2] My podspec repo is work in progress. I'm updating geos to 3.6.2 at the moment. |
@mojtabacazi when you have a working I'm not using |
@vfn Sure I can fix this issue. |
@mojtabacazi So I did what you suggested. And I dont understand whats happening. The other pods will say they don't exist when I goto build from xCode. Alternatively, if I copy in the GEOSwift folder into my pods folder. Then run a pod install everything works. |
Yes. I created a sample app to display .geo.json on a view controller. Here's the full podfile:
|
@himi1 Did you also run |
oh. I did not do that. It's giving me this warning:
|
try running |
I ran the following command to link it now:
But xcode errors persist. |
Ya im still having other libs give linker errors. I'm no longer getting a pod install error. which was what I thought was giving me the errors on other libs. Xcode just got to them first I thought. And since pods failed it didn't install any. |
@jwilson85 : What are the errors that you are getting? |
I tried to add framework search path that didn't work either. |
Try deleting ~/Library/Developer/Xcode/DerivedData and then delete Podfile.lock file. Finally, run pod install once again. |
Hey! that seems to have worked. I deleted podfile.lock the pods folder and cleared DerivedData. |
@jwilson85 : My pleasure. May you copy paste your podfile please? I am still unable to fix my xcode errors. |
@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
|
I'm having issues installing GeoSwift on Sierra 10.12.6, XCode 9.2, Cocoapods 1.4.0. Podfile:
Console reports:
I have brew installed, and run:
how can i fix this? Thought it shouldn't be this hard with cocoapods! |
@dan-burt did you happen to past the last part of the brew install command into your console. Sorry for the dumb question |
@jwilson85 sorry, the terminal session has already been closed |
@dan-burt just checking to make sure you didn’t past the “again and then” into terminal |
@jwilson85 , sorry I had mis-read your question. No I definitely did not include the "again and then" into the command string |
Every time I update pod for other dependencies the problem appears with different error!This is the new swift compile error:
I tried several ways like clean + build, change the scheme to dependency, delete derived data, none of them worked. |
Hey guys, I had a similar problem with So, I was using the CocoaPods application, then tried the 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:
|
Hi Everybody, I have some troubles with this package : I'm running macOS High Sierra 10.13.3, XCode 9.4.1 (9F2000), and cocoapods 1.5.2. Here the result of my terminal window : 18macbookrj:BuBus alban$ brew install automake autoconf libtool libxml2 pkg-config If you need to have this software first in your PATH instead consider running: If you need to have this software first in your PATH instead consider running: None of your spec sources contain a spec satisfying the dependency: You have either:
Note: as of CocoaPods 1.0, Could you please help me ? |
@Obiwan78 did you try |
@Obiwan78 based on that screenshot, it looks like you were able to install the SDK. Having a bunch of warnings is, unfortunately, typical at the moment. Do you have any build errors? |
No, no mistake of build constrcution. |
If you just want to ignore the warnings, you can update your podfile:
After you change you're Podfile, you'll just have to run |
Thanks a lot for your answer. It's good now. |
Hi all, many of these issues have been resolved with GEOSwift 3.0.0 / geos 3.7.0. Give them a try and open new tickets if you run into any problems. I'm closing this one since it's gotten a bit long and hard to follow. |
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!!!
The text was updated successfully, but these errors were encountered: