更多文章http://blog.csdn.net/qq_29284809
当我们在Xcode中使用CocoaPods执行Install Pods时,在终端会输出这个提示信息ruby_executable_hooks路径未找到;
/usr/local/bin/pod install
env: ruby_executable_hooks: No such file or directory
解决办法打开我们的终端,执行which ruby_executable_hooks 或者 which gem 或者 which pod;
xiaqiangdeMacBook-Pro:~ xiaqiang$ which gem
/Users/xiaqiang/.rvm/rubies/ruby-2.2.2/bin/gem
xiaqiangdeMacBook-Pro:~ xiaqiang$ which ruby_executable_hooks
/Users/xiaqiang/.rvm/gems/ruby-2.2.2@global/bin/ruby_executable_hooks
xiaqiangdeMacBook-Pro:~ xiaqiang$ which pod
/usr/local/bin/pod
将前面的路径,截取到它所在的目录,如:/usr/local/bin
或者/Users/xiaqiang/.rvm/gems/ruby-2.2.2@global/bin
或者/Users/xiaqiang/.rvm/rubies/ruby-2.2.2/bin,粘贴到Xcode -> Product ->CocoaPods ->GEM_PATH里面,按下回车键;再次执行Xcode -> Product ->CocoaPods ->Install Pods命令,即可安装第三方库;