CocoaPods Failing to install with Xcode 5.0.2

cocoapods, ruby, rubygems, xcode, xcode5

Solution

Installing new Ruby version helped me. Follow these steps

rvm reinstall ruby-2.0.0-p247 --with-gcc=clang --verify-downloads 1
gem install xcodeproj
gem install cocoapods

I found this answer in some old Github issue.

Problem

I have been stuck on this issue for a couple hours now and I cannot find a solution. I am running Mavericks and have Xcode 5.0.2 installed (which comes with the Command Line Tools). My environment: - using RVM with ruby version 1.9.3p484 - Xcode 5.0.2 - Mac OS 10.9.1 - Gem 2.2.0 - Bundler version 1.3.5 Sudo gem install cocoapods outputs ``` kyles-mbp-2:fresh-driver-ios kylechronis$ sudo gem install cocoapods Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. /Users/kylechronis/.rvm/rubies/ruby-1.9.3-p484/bin/ruby -rubygems /Users/kylechronis/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/rake- 0.9.2.2/bin/rake RUBYARCHDIR=/Users/kylechronis/.rvm/rubies/ruby-1.9.3- p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-13/1.9.1/xcodeproj-0.14.1 RUBYLIBDIR=/Users/kylechronis/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-13/1.9.1/xcodeproj-0.14.1 /Users/kylechronis/.rvm/rubies/ruby-1.9.3-p484/bin/ruby extconf.rb checking for -std=c99 option to compiler... yes checking for CoreFoundation... no checking for main() in -lCoreFoundation... no CoreFoundation is needed to build the Xcodeproj C extension. *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. ``` Is this an issue with CoreFoundation not being found? or using a different version of Ruby? Any help or input would be greatly appreciated.

Original source

Related problems