{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/1727","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/1727/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/1727/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/1727/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/1727","id":24991799,"number":1727,"title":"Error: \"You have to install development tools first.\"","user":{"login":"jamonholmgren","id":1479215,"avatar_url":"https://avatars.githubusercontent.com/u/1479215?v=3","gravatar_id":"","url":"https://api.github.com/users/jamonholmgren","html_url":"https://github.com/jamonholmgren","followers_url":"https://api.github.com/users/jamonholmgren/followers","following_url":"https://api.github.com/users/jamonholmgren/following{/other_user}","gists_url":"https://api.github.com/users/jamonholmgren/gists{/gist_id}","starred_url":"https://api.github.com/users/jamonholmgren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamonholmgren/subscriptions","organizations_url":"https://api.github.com/users/jamonholmgren/orgs","repos_url":"https://api.github.com/users/jamonholmgren/repos","events_url":"https://api.github.com/users/jamonholmgren/events{/privacy}","received_events_url":"https://api.github.com/users/jamonholmgren/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":44,"created_at":"2014-01-02T22:38:20Z","updated_at":"2015-01-04T07:51:50Z","closed_at":"2014-01-02T23:19:22Z","body":"I know this is a common problem, so I've searched all the issues but haven't found a solution to it. Hoping someone can point me in the right direction.\r\n\r\nWhen I run `gem install cocoapods`, I get this:\r\n\r\n```\r\n ~/ gem install cocoapods\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing cocoapods:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /usr/local/bin/ruby -rubygems /usr/local/lib/ruby/gems/2.1.0/gems/rake-10.1.1/bin/rake RUBYARCHDIR=/Users/jh/.gem/ruby/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/xcodeproj-0.14.1 RUBYLIBDIR=/Users/jh/.gem/ruby/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/xcodeproj-0.14.1\r\n/usr/local/bin/ruby extconf.rb\r\nchecking for -std=c99 option to compiler... *** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n\t--with-opt-dir\r\n\t--with-opt-include\r\n\t--without-opt-include=${opt-dir}/include\r\n\t--with-opt-lib\r\n\t--without-opt-lib=${opt-dir}/lib\r\n\t--with-make-prog\r\n\t--without-make-prog\r\n\t--srcdir=.\r\n\t--curdir\r\n\t--ruby=/usr/local/bin/ruby\r\n/usr/local/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)\r\nYou have to install development tools first.\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:571:in `block in try_compile'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:524:in `with_werror'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:571:in `try_compile'\r\n\tfrom extconf.rb:24:in `block in <main>'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:321:in `open'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:321:in `open'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:347:in `postpone'\r\n\tfrom /usr/local/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for'\r\n\tfrom extconf.rb:23:in `<main>'\r\nrake aborted!\r\nCommand failed with status (1): [/usr/local/bin/ruby extconf.rb...]\r\n/Users/jh/.gem/ruby/2.1.0/gems/xcodeproj-0.14.1/ext/xcodeproj/Rakefile:37:in `block in <top (required)>'\r\nTasks: TOP => default => ext\r\n(See full trace by running task with --trace)\r\n\r\nrake failed, exit code 1\r\n\r\nGem files will remain installed in /Users/jh/.gem/ruby/2.1.0/gems/xcodeproj-0.14.1 for inspection.\r\nResults logged to /Users/jh/.gem/ruby/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/xcodeproj-0.14.1/gem_make.out\r\n ~/\r\n```\r\n\r\nI've already run `xcode-select --install`. Any ideas?\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/68624505","html_url":"https://github.com/CocoaPods/CocoaPods/issues/1727#issuecomment-68624505","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/1727","id":68624505,"user":{"login":"qileilove","id":3895501,"avatar_url":"https://avatars.githubusercontent.com/u/3895501?v=3","gravatar_id":"","url":"https://api.github.com/users/qileilove","html_url":"https://github.com/qileilove","followers_url":"https://api.github.com/users/qileilove/followers","following_url":"https://api.github.com/users/qileilove/following{/other_user}","gists_url":"https://api.github.com/users/qileilove/gists{/gist_id}","starred_url":"https://api.github.com/users/qileilove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qileilove/subscriptions","organizations_url":"https://api.github.com/users/qileilove/orgs","repos_url":"https://api.github.com/users/qileilove/repos","events_url":"https://api.github.com/users/qileilove/events{/privacy}","received_events_url":"https://api.github.com/users/qileilove/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T07:51:50Z","updated_at":"2015-01-04T07:51:50Z","body":"yeah! the same error!   with @vixentael help， I fix errors."}}