env: ruby_executable_hooks: No such file or directory

最近换了机器,mac的版本是10.11.3,安装cocoapod出现这个提示“env: ruby_executable_hooks: No such file or directory”。
google了好久,最后装了个cocoapod的插件https://github.com/kattrali/cocoapods-xcode-plugin
在终端输入 which ruby_executable_hooks 或 which GEM
把得到的路径复制,打开Xcode-> Product-> cocoaPods - >GEM_PATH 粘贴刚才得到的路径

http://www.jianshu.com/p/6ff1903c3f11

你可能感兴趣的:(env: ruby_executable_hooks: No such file or directory)