{"id":36,"date":"2014-06-07T15:37:36","date_gmt":"2014-06-07T13:37:36","guid":{"rendered":"http:\/\/iosnow.net\/?p=36"},"modified":"2014-06-07T15:37:36","modified_gmt":"2014-06-07T13:37:36","slug":"cocoapods-on-xcode-6-and-yosemite","status":"publish","type":"post","link":"http:\/\/iosnow.net\/?p=36","title":{"rendered":"CocoaPods on Xcode 6 and Yosemite"},"content":{"rendered":"<p>This post is for anybody with problems updating CocoaPods, and unable to run the current pod executable.<\/p>\n<p>Extracted from the <a href=\"https:\/\/github.com\/CocoaPods\/CocoaPods\/issues\/2219\" title=\"CocoaPods GitHub Issues\" target=\"_blank\">CocoaPods GitHub Issues<\/a>, find here the steps necessary to solve this problem and have a new brilliant pod executable working:<br \/>\n1. Open Xcode 6<br \/>\n2. Open Preferences (Men\u00fa Xcode-Preferences)<br \/>\n3. Click the Locations tab<br \/>\n4. Change the Command Line Tools version to Xcode 6.0<br \/>\n5. Uninstall from a terminal window cocoapods (all installed versions prompted)<br \/>\n $ sudo gem uninstall cocoapods<br \/>\n6. Uninstall xcodeproj (all installed versions prompted)<br \/>\n $ sudo gem uninstall xcodeproj<br \/>\n7. Install xcodeproj<br \/>\n $ sudo gem install xcodeproj<br \/>\n8. Install cocoapods (retry a second time if fails with a error)<br \/>\n $ sudo gem install cocoapods<br \/>\n9. Run pod &#8211;version to verify that it worked<\/p>\n<p>Before doing a new installation I found the following error on executing pod:<br \/>\n<code>\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj\/prebuilt\/universal.x86_64-darwin14-2.0.0\/xcodeproj_ext (LoadError)<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'<br \/>\n\tfrom \/Library\/Ruby\/Gems\/2.0.0\/gems\/xcodeproj-0.16.1\/lib\/xcodeproj\/ext.rb:6:in `rescue in <top (required)>'<br \/>\n\tfrom \/Library\/Ruby\/Gems\/2.0.0\/gems\/xcodeproj-0.16.1\/lib\/xcodeproj\/ext.rb:3:in `<top (required)>'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'<br \/>\n\tfrom \/Library\/Ruby\/Gems\/2.0.0\/gems\/xcodeproj-0.16.1\/lib\/xcodeproj.rb:30:in `<top (required)>'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'<br \/>\n\tfrom \/Library\/Ruby\/Gems\/2.0.0\/gems\/cocoapods-0.32.1\/lib\/cocoapods.rb:2:in `<top (required)>'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'<br \/>\n\tfrom \/Library\/Ruby\/Gems\/2.0.0\/gems\/cocoapods-0.32.1\/bin\/pod:32:in `<top (required)>'<br \/>\n\tfrom \/usr\/bin\/pod:23:in `load'<br \/>\n\tfrom \/usr\/bin\/pod:23:in `&lt;main&gt;'<\/code><\/p>\n<p>Without doing the steps above, I found imposible to install the updated version of cocoa pods, the installation failed with error:<br \/>\n<code>Fetching: cocoapods-core-0.33.1.gem (100%)<br \/>\nSuccessfully installed cocoapods-core-0.33.1<br \/>\nFetching: claide-0.6.1.gem (100%)<br \/>\nSuccessfully installed claide-0.6.1<br \/>\nFetching: xcodeproj-0.17.0.gem (100%)<br \/>\nBuilding native extensions.  This could take a while...<br \/>\nERROR:  Error installing cocoapods:<br \/>\n\tERROR: Failed to build gem native extension.<\/p>\n<p>    \"\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/bin\/ruby\" -rubygems \/Library\/Ruby\/Gems\/2.0.0\/gems\/rake-10.1.1\/bin\/rake RUBYARCHDIR=\/Library\/Ruby\/Gems\/2.0.0\/gems\/xcodeproj-0.17.0\/ext RUBYLIBDIR=\/Library\/Ruby\/Gems\/2.0.0\/gems\/xcodeproj-0.17.0\/ext<br \/>\n\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/bin\/ruby extconf.rb<br \/>\nchecking for -std=c99 option to compiler... *** extconf.rb failed ***<br \/>\nCould not create Makefile due to some reason, probably lack of necessary<br \/>\nlibraries and\/or headers.  Check the mkmf.log file for more details.  You may<br \/>\nneed configuration options.<\/p>\n<p>Provided configuration options:<br \/>\n\t--with-opt-dir<br \/>\n\t--without-opt-dir<br \/>\n\t--with-opt-include<br \/>\n\t--without-opt-include=${opt-dir}\/include<br \/>\n\t--with-opt-lib<br \/>\n\t--without-opt-lib=${opt-dir}\/lib<br \/>\n\t--with-make-prog<br \/>\n\t--without-make-prog<br \/>\n\t--srcdir=.<br \/>\n\t--curdir<br \/>\n\t--ruby=\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/bin\/ruby<br \/>\n\/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)<br \/>\nYou have to install development tools first.<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:549:in `block in try_compile'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:502:in `with_werror'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:549:in `try_compile'<br \/>\n\tfrom extconf.rb:24:in `block in <main>'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:895:in `block in checking_for'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:340:in `block (2 levels) in postpone'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:310:in `open'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:340:in `block in postpone'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:310:in `open'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:336:in `postpone'<br \/>\n\tfrom \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/2.0\/usr\/lib\/ruby\/2.0.0\/mkmf.rb:894:in `checking_for'<br \/>\n\tfrom extconf.rb:23:in `<main>'<br \/>\nrake aborted!<br \/>\nCommand failed with status (1): [\/System\/Library\/Frameworks\/Ruby.framework\/...]<br \/>\n\/Library\/Ruby\/Gems\/2.0.0\/gems\/xcodeproj-0.17.0\/ext\/xcodeproj\/Rakefile:37:in `block in <top (required)>'<br \/>\nTasks: TOP => default => ext<br \/>\n(See full trace by running task with --trace)<\/p>\n<p>Gem files will remain installed in \/Library\/Ruby\/Gems\/2.0.0\/gems\/xcodeproj-0.17.0 for inspection.<br \/>\nResults logged to \/Library\/Ruby\/Gems\/2.0.0\/gems\/xcodeproj-0.17.0\/ext\/xcodeproj\/gem_make.out<\/code><\/p>\n<p>Hope this could help somebody<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is for anybody with problems updating CocoaPods, and unable to run the current pod executable. Extracted from the CocoaPods GitHub Issues, find here the steps necessary to solve this problem and have a new brilliant pod executable working: 1. Open Xcode 6 2. Open Preferences (Men\u00fa Xcode-Preferences) 3. Click the Locations tab 4. <a class=\"read-more\" href=\"http:\/\/iosnow.net\/?p=36\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/iosnow.net\/index.php?rest_route=\/wp\/v2\/posts\/36"}],"collection":[{"href":"http:\/\/iosnow.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iosnow.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iosnow.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/iosnow.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":8,"href":"http:\/\/iosnow.net\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":44,"href":"http:\/\/iosnow.net\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions\/44"}],"wp:attachment":[{"href":"http:\/\/iosnow.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iosnow.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iosnow.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}