Asked 8 years ago
17 Sep 2016
Views 2962
QuickIos

QuickIos posted

how to install CocoaPods ?

want to install CocoaPods , don't know how to do it

pls explain little in detail .little noobs at Mac OS

Thanks
jagdish

jagdish
answered Nov 30 '-1 00:00

open terminal

 sudo gem install cocoapods


and terminal ask admin password . enter password

and you will find it installed in some time
Thanks for answer -- but after enter sado gem install cocoapods . after freezing terminal for some time it give me ERROR: Could not find a valid gem "cocoa pods" (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::EHOSTUNREACH: No route to host - connect(2) (https://rubygems.org/quick/Marshal.4.8/cocoapods-1.0.1.gemspec.rz) - QuickIos  
Sep 17 '16 06:18
@QuickIos which mac using ? - ruby-rails  
Sep 17 '16 07:23
@ruby-rails using OS X EI Captain - QuickIos  
Sep 17 '16 07:25
ruby-rails

ruby-rails
answered Nov 30 '-1 00:00

pls try

gem install cocoapods -n/usr/local/bin 

now find new problem -- ERROR: While executing gem ... (Gem::FilePermissionError) You do not have write permissions for the /Library/Ruby/Gems/2.0.0 directory - QuickIos  
Sep 17 '16 07:38
use -- sudo gem install cocoapods -n/usr/local/bin - ruby-rails  
Sep 17 '16 07:41
sorry i bother you but it says ERROR: Error installing cocoapods: activesupport requires Ruby version >= 2.2.2. - QuickIos  
Sep 17 '16 08:06
pls update Ruby version to latest by brew install ruby - Mitul Dabhi  
Sep 17 '16 14:32
i just installed by CocoaPods, thanks. i solved brew update issue first, http://open-source-customization.com/question/permission-error-on-the-ruby-install/56 than gem installed - QuickIos  
Sep 18 '16 09:01
Post Answer