Can't get to work CocoaPods and Yosemite
In case someone else got the same issue, I did this to fix my issue:
Update Gems
sudo gem update --system
Uninstalled xcodeproj
sudo gem uninstall xcodeproj
Make sure to select All versions
Uninstalled Cocoapods
sudo gem uninstall cocoapods
Install xcodeproj
sudo gem install xcodeproj
Install cocoapods
sudo gem install cocoapods
Run
pod --version to test.
Unable to install Cocoapods on Yosemite DP 7
I ran into the same issue. After much hair pulling following the same steps as everyone else, the following worked.
$ xcode-select --install (to confirm command line tools are installed)
Installed nvm stable (and homebrew): $ \curl -sSL https://get.rvm.io | bash -s stable
close/reopen terminal
Installed ruby 2.1.2: $ rvm install 2.1
Switch to it: $ rvm use 2.1
Uninstall/reinstall xcodeproj and cocoapods
How do I use cocoapods 0.33.1 on Yosemite?
Alright, it seems the easiest solution is to install a Ruby environment manager. This allows the appropriate Ruby version to be loaded when cocoapods asks for it. I haven't dug too deep, but it seems the version CP is looking for is incompatible. (???) Anyway, installing rbenv immediately solved my problem.
I chose rbenv but there's another called RVM. rbenv did a good job explaining the differences between the two, however.
Cocoapods with Xcode 6 and 10.10 Yosemite
- Open Xcode 6
- Open Preferences
- Click the Locations tab
- Change the
Command Line Tools
version toXcode 6.0
- Uninstall cocoapods
$ sudo gem uninstall cocoapods
- Uninstall xcodeproj
$ sudo gem uninstall xcodeproj
- Install xcodeproj
$ sudo gem install xcodeproj
- Install cocoapods
$ sudo gem install cocoapods
- Run
pod --version
to verify that it worked
Can't get CocoaPods working
I finally solved my problem.
Short answer:
I had to install ruby 2.1.2, then reinstall cocoapods and everything worked.
Long answer:
- Resolve all warnings from
brew doctor
;- remove unused libraries;
- remove MacPorts;
- resolve additional warnings which I already do not remember;
- I might even reinstalled brew.
- Install
rvm
; - Install & use ruby 2.1.2 using rvm;
rvm requirements
complains about many missing packages, install them;- among them, there is gcc46, which I was unable to install. After Xcode 4.2 or something, command line tools come without gcc. So if
rvm requirements
does not find one, it suggests gcc46. But the point is, installingbrew install apple-gcc42
solves the problem.rvm requirements
stops complaining and you can install ruby 2.1.2: rvm install 2.1.2
;rvm use 2.1.2
;
- Install cocoapods, as suggested in @Varsha Vijayvargiya's answer.
I might forgot something, so if you have any questions - ask. Here are some links which helped me:
- update mac osx to 10.10 and pod cannot work;
- Installing Ruby 2.0.0 with RVM and Homebrew on Mac OS X 10.8 Mountain Lion;
- Homebrew GCC won't install on OS X 10.10 Yosemite with Xcode 6;
- Installing gcc on Mavericks.
Can not perform `pod install` under el capitan (15A279b)
Solution, fix for Cocoapods error on El Capitan 10.11:
sudo gem install -n /usr/local/bin cocoapods
Cocoa Pods not updating pods on El Capitan
This is caused by the new System integrity protection feature introduced in El Capitan. It restricts even administrators from writing to /usr/bin
.
Your best option would be to install gems without needing sudo
. There is a good guide on how to do that:
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
gem install cocoapods
Related Topics
Unpermitted Parameters for Dynamic Forms in Rails 4
Simplest Way to Send Raw Byte-Arrays Using Ruby's Tcpsocket-Class
Stop Loading Page Watir-Webdriver
Ruby.Metaprogramming. Class_Eval
How to Change the Default Value of a Struct Attribute
Getting a List of Classes That Include a Module
Does Ruby Have Syntax for Safe Navigation Operator of Nil Values, Like in Groovy
Obtaining a Facebook Auth Token for a Command-Line (Desktop) Application
Is Regexp.Last_Match Thread Safe
Missing File in Gem After Build
How to Get the Final Url After Redirects Using Ruby
Errno::Eaccess: Permission Denied @ Dir_S_Mkdir
Declaring an Integer Range with Step != 1 in Ruby
How Do Version Numbers Work for Mri Ruby
How to Count Existing Instances of a Class in Ruby
Ruby Operator Method Calls VS. Normal Method Calls
Errno::Econnreset: Connection Reset by Peer in Rails Using Rest-Client